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 Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
@Nonnull public PipedInputStream newInputStream() throws IOException
IOException
- the io exceptionpublic void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public boolean isChainCloses()
public TeeOutputStream setChainCloses(boolean chainCloses)
chainCloses
- the chain closesCopyright © 2019 SimiaCryptus Software. All rights reserved.