public class DemuxOutputStream extends OutputStream
Constructor and Description |
---|
DemuxOutputStream() |
Modifier and Type | Method and Description |
---|---|
OutputStream |
bindStream(OutputStream output)
Binds the specified stream to the current thread.
|
void |
close()
Closes stream associated with current thread.
|
void |
flush()
Flushes stream associated with current thread.
|
void |
write(int ch)
Writes byte to stream associated with current thread.
|
write, write
public DemuxOutputStream()
public OutputStream bindStream(OutputStream output)
output
- the stream to bindpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
- if an error occurspublic void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
- if an error occurspublic void write(int ch) throws IOException
write
in class OutputStream
ch
- the byte to write to streamIOException
- if an error occursCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.