public class TeeOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
List<OutputStream> |
branches |
OutputStream |
primary |
| Constructor and Description |
|---|
TeeOutputStream(OutputStream primary,
boolean buffer) |
TeeOutputStream(OutputStream primary,
OutputStream... secondaries) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
boolean |
isChainCloses() |
PipedInputStream |
newInputStream() |
TeeOutputStream |
setChainCloses(boolean chainCloses) |
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)
public TeeOutputStream(OutputStream primary, OutputStream... secondaries)
public 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
IOExceptionpublic 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)
Copyright © 2019 SimiaCryptus Software. All rights reserved.