public class LoggingOutputStream extends WrappedOutputStream
OutputStream that logs what he is doing.out| Constructor and Description |
|---|
LoggingOutputStream(OutputStream aSourceOS) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesWritten() |
protected void |
onWrite(int nBytesWritten,
long nTotalBytesWritten) |
String |
toString() |
void |
write(byte[] aBuf,
int nOfs,
int nLen) |
void |
write(int b) |
getWrappedOutputStreamclose, flush, writepublic LoggingOutputStream(@Nonnull OutputStream aSourceOS)
@Nonnegative public final long getBytesWritten()
@OverrideOnDemand protected void onWrite(@Nonnegative int nBytesWritten, long nTotalBytesWritten)
public final void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(@Nonnull byte[] aBuf, int nOfs, int nLen) throws IOException
write in class WrappedOutputStreamIOExceptionpublic String toString()
toString in class WrappedOutputStreamCopyright © 2014–2019 Philip Helger. All rights reserved.