|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.plt.debug.TextLogSink
edu.rice.cs.plt.debug.IndentedTextLogSink
edu.rice.cs.plt.debug.SystemOutLogSink
public class SystemOutLogSink
A log sink that writes tagged, indented text to System.out. Automatically changes the destination
stream after updates are made to System.out.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.rice.cs.plt.debug.LogSink |
|---|
LogSink.EndMessage, LogSink.ErrorMessage, LogSink.Message, LogSink.MessageVisitor<T>, LogSink.StackMessage, LogSink.StandardMessage, LogSink.StartMessage, LogSink.ValueMessage |
| Constructor Summary | |
|---|---|
SystemOutLogSink()
Create a log sink to System.err using the platform's default charset. |
|
SystemOutLogSink(int idealLineWidth)
Create a log sink to System.err using the platform's default charset and the given line width. |
|
SystemOutLogSink(String charsetName)
Create a log sink to System.err using the given charset. |
|
SystemOutLogSink(String charsetName,
int idealLineWidth)
Create a log to System.err using the given charset and line width. |
|
| Method Summary | |
|---|---|
void |
close()
|
protected BufferedWriter |
writer(LogSink.Message m)
Get a BufferedWriter for outputting the given message. |
| Methods inherited from class edu.rice.cs.plt.debug.IndentedTextLogSink |
|---|
write, writeEnd, writeStart |
| Methods inherited from class edu.rice.cs.plt.debug.TextLogSink |
|---|
formatLocation, formatLocation, formatThread, formatTime, log, logEnd, logError, logStack, logStart |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemOutLogSink()
System.err using the platform's default charset.
public SystemOutLogSink(String charsetName)
throws UnsupportedEncodingException
System.err using the given charset.
UnsupportedEncodingExceptionpublic SystemOutLogSink(int idealLineWidth)
System.err using the platform's default charset and the given line width.
public SystemOutLogSink(String charsetName,
int idealLineWidth)
throws UnsupportedEncodingException
System.err using the given charset and line width.
UnsupportedEncodingException| Method Detail |
|---|
protected BufferedWriter writer(LogSink.Message m)
IndentedTextLogSink
writer in class IndentedTextLogSink
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||