public class TeeOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
List<OutputStream> |
branches
The Branches.
|
OutputStream |
primary
The Primary.
|
| Constructor and Description |
|---|
TeeOutputStream(OutputStream primary,
boolean buffer)
Instantiates a new Tee output stream.
|
TeeOutputStream(OutputStream primary,
OutputStream... secondaries)
Instantiates a new Tee output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
boolean |
isChainCloses()
Is chain closes boolean.
|
PipedInputStream |
newInputStream()
New input stream piped input stream.
|
TeeOutputStream |
setChainCloses(boolean chainCloses)
Sets chain closes.
|
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public final List<OutputStream> branches
public final OutputStream primary
public TeeOutputStream(OutputStream primary, boolean buffer)
primary - the primarybuffer - the bufferpublic TeeOutputStream(OutputStream primary, OutputStream... secondaries)
primary - the primarysecondaries - the secondariespublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException@Nonnull public PipedInputStream newInputStream() throws IOException
IOException - the io exceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic boolean isChainCloses()
public TeeOutputStream setChainCloses(boolean chainCloses)
chainCloses - the chain closesCopyright © 2019 SimiaCryptus Software. All rights reserved.