public class LoggingWriter extends WrappedWriter
Writer that logs what he is doing.out| Constructor and Description |
|---|
LoggingWriter(Writer aSourceReader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getBytesWritten() |
protected void |
onClose(long nTotalBytesWritten) |
protected void |
onWrite(int nBytesWritten,
long nTotalBytesWritten) |
String |
toString() |
void |
write(char[] aBuf,
int nOfs,
int nLen) |
void |
write(int b) |
getWrappedWriterflush, write@Nonnegative public final long getBytesWritten()
@OverrideOnDemand protected void onWrite(@Nonnegative int nBytesWritten, long nTotalBytesWritten)
@OverrideOnDemand protected void onClose(long nTotalBytesWritten)
public final void write(int b)
throws IOException
write in class FilterWriterIOExceptionpublic final void write(@Nonnull char[] aBuf, int nOfs, int nLen) throws IOException
write in class FilterWriterIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterWriterIOExceptionpublic String toString()
toString in class WrappedWriterCopyright © 2014–2019 Philip Helger. All rights reserved.