Closeable, Flushable, AutoCloseablepublic class CopyingOutputStream extends OutputStream
| Constructor | Description |
|---|---|
CopyingOutputStream(OutputStream... outputStreams) |
This constructor instantiates the class based on an array of output streams.
|
CopyingOutputStream(Collection<OutputStream> outputStreams) |
This constructor instantiates the class based on a
Collection of
output streams. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
This method closes all provided
outputStreams. |
void |
write(int b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, write, writepublic CopyingOutputStream(OutputStream... outputStreams)
outputStreams - is the array of output streams to write each byte to.public CopyingOutputStream(Collection<OutputStream> outputStreams)
Collection of
output streams.outputStreams - is the array of output streams to write each byte to.public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
outputStreams.close in interface AutoCloseableclose in interface Closeableclose in class OutputStreamIOExceptionCopyright © 2017–2018 PureSol Technologies. All rights reserved.