edu.rice.cs.plt.debug
Class OutputStreamLogSink
java.lang.Object
edu.rice.cs.plt.debug.TextLogSink
edu.rice.cs.plt.debug.IndentedTextLogSink
edu.rice.cs.plt.debug.OutputStreamLogSink
- All Implemented Interfaces:
- LogSink, Closeable
public class OutputStreamLogSink
- extends IndentedTextLogSink
A log sink that writes tagged, indented text to an output stream.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OutputStreamLogSink
public OutputStreamLogSink(OutputStream out)
OutputStreamLogSink
public OutputStreamLogSink(OutputStream out,
String charset)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
OutputStreamLogSink
public OutputStreamLogSink(OutputStream out,
int idealLineWidth)
OutputStreamLogSink
public OutputStreamLogSink(OutputStream out,
String charset,
int idealLineWidth)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
close
public void close()
throws IOException
- Throws:
IOException
writer
protected BufferedWriter writer(LogSink.Message m)
- Description copied from class:
IndentedTextLogSink
- Get a BufferedWriter for outputting the given message.
- Specified by:
writer in class IndentedTextLogSink