Class DirectByteArrayOutputStream

    • Constructor Detail

      • DirectByteArrayOutputStream

        public DirectByteArrayOutputStream​(int size)
    • Method Detail

      • write

        public void write​(int b)
                   throws IOException
        Writes the specified byte to this output stream.
        Specified by:
        write in class OutputStream
        Parameters:
        b - the byte.
        Throws:
        IOException - if an I/O error occurs. In particular, an IOException may be thrown if the output stream has been closed.
      • size

        public int size()
      • getArrayDirect

        public byte[] getArrayDirect()
      • getArray

        public byte[] getArray()