Class OutputStreamByteOutput

    • Constructor Detail

      • OutputStreamByteOutput

        public OutputStreamByteOutput​(OutputStream outputStream)
        Construct a new instance.
        Parameters:
        outputStream - the output stream to write to
    • Method Detail

      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws IOException
        Writes len bytes from the specified byte array starting at offset off to this output stream.
        Specified by:
        write in interface ByteOutput
        Overrides:
        write in class FilterOutputStream
        Parameters:
        b - the data
        off - the start offset in the data
        len - the number of bytes to write
        Throws:
        IOException - if an I/O error occurs