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 OutputStream
IOException
public void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes, int offset, int length) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
protected void dump()
protected void log(String line)
Copyright © 2012. All Rights Reserved.