Class UnsyncByteArrayOutputStream

    • Constructor Detail

      • UnsyncByteArrayOutputStream

        public UnsyncByteArrayOutputStream()
    • Method Detail

      • write

        public void write​(byte[] arg0)
        Overrides:
        write in class OutputStream
      • write

        public void write​(byte[] arg0,
                          int arg1,
                          int arg2)
        Overrides:
        write in class OutputStream
      • write

        public void write​(int arg0)
        Specified by:
        write in class OutputStream
      • toByteArray

        public byte[] toByteArray()
      • reset

        public void reset()
      • writeTo

        public void writeTo​(OutputStream out)
                     throws IOException
        Takes the contents of this stream and writes it to the output stream out.
        Parameters:
        out - an OutputStream on which to write the contents of this stream.
        Throws:
        IOException - if an error occurs while writing to out.