org.apache.commons.io.output

Class DemuxOutputStream

    • Constructor Detail

      • DemuxOutputStream

        public DemuxOutputStream()
    • Method Detail

      • bindStream

        public OutputStream bindStream(OutputStream output)
        Binds the specified stream to the current thread.
        Parameters:
        output - the stream to bind
        Returns:
        the OutputStream that was previously active
      • write

        public void write(int ch)
                   throws IOException
        Writes byte to stream associated with current thread.
        Specified by:
        write in class  OutputStream
        Parameters:
        ch - the byte to write to stream
        Throws:
        IOException - if an error occurs

Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.