public final class OutputStreamWrapper extends OutputStream
| Constructor and Description |
|---|
OutputStreamWrapper(OutputStream outputStream)
Create new object.
|
OutputStreamWrapper(OutputStream outputStream,
OutputStream logOutputStream)
Create new object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] value) |
void |
write(byte[] value,
int offset,
int length) |
void |
write(int value) |
public OutputStreamWrapper(OutputStream outputStream)
outputStream - stream to write the command output.public OutputStreamWrapper(OutputStream outputStream, OutputStream logOutputStream)
outputStream - stream to write the command output.logOutputStream - stream to log the command output.public void write(int value)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] value)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] value,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2019. All rights reserved.