Closeable
, Flushable
, AutoCloseable
public 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, wait
flush, write, write
public 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 OutputStream
IOException
public void close() throws IOException
outputStreams
.close
in interface AutoCloseable
close
in interface Closeable
close
in class OutputStream
IOException
Copyright © 2017–2018 PureSol Technologies. All rights reserved.