public class LoggingOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected StringBuilder |
line |
protected LogCompat |
log |
protected OutputStream |
wrapped |
| Modifier | Constructor and Description |
|---|---|
protected |
LoggingOutputStream(OutputStream wrapped,
LogCompat log) |
protected OutputStream wrapped
protected LogCompat log
protected StringBuilder line
protected LoggingOutputStream(OutputStream wrapped, LogCompat log)
public void write(int c)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes,
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 OutputStreamIOExceptionprotected void dump()
protected void log(String line)
Copyright © 2012. All Rights Reserved.