public class DebugOutputStream extends WrappedOutputStream
OutputStream that logs what he is doing.| Constructor and Description |
|---|
DebugOutputStream(OutputStream aSourceOS) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesWritten() |
protected void |
onWrite(int nBytesWritten,
long nTotalBytesWritten) |
String |
toString() |
void |
write(byte[] b,
int nOffset,
int nLength) |
void |
write(int b) |
close, flush, getWrappedOutputStream, writepublic DebugOutputStream(@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 WrappedOutputStreamIOExceptionpublic final void write(byte[] b,
int nOffset,
int nLength)
throws IOException
write in class WrappedOutputStreamIOExceptionpublic String toString()
toString in class WrappedOutputStreamCopyright © 2006–2015 phloc systems. All rights reserved.