Class ByteBufferOutputStream

    • Constructor Detail

      • ByteBufferOutputStream

        public ByteBufferOutputStream​(byte[] buf)
        Initializes a new ByteBufferOutputStream instance which is to represent a specific byte array as an OutputStream.
        Parameters:
        buf - the byte array for which the new instance is to implement OutputStream
      • ByteBufferOutputStream

        public ByteBufferOutputStream​(byte[] buf,
                                      int off,
                                      int len)
        Initializes a new ByteBufferOutputStream instance which is to represent a specific byte array as an OutputStream.
        Parameters:
        buf - the byte array for which the new instance is to implement OutputStream
        off -
        len -
    • Method Detail

      • size

        public int size()
        Returns the number of bytes written into this OutputStream.
        Returns:
        the number of bytes written into this OutputStream