|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectus.zuercher.gpx2map.util.MessageSink
us.zuercher.gpx2map.util.PrintStreamMessageSink
public class PrintStreamMessageSink
PrintStreamMessageSink extends MessageSink to send all messages to a
PrintStream
.
Field Summary | |
---|---|
private PrintStream |
out
The PrintStream to be used for all output. |
Constructor Summary | |
---|---|
PrintStreamMessageSink()
Consructs a PrintStreamMessageSink that sends all output to System.out . |
|
PrintStreamMessageSink(PrintStream out)
Consructs a PrintStreamMessageSink that sends all output to the given PrintStream . |
Method Summary | |
---|---|
void |
newLine()
Writes a new-line to the configured PrintStream . |
void |
write(String message)
Writes the message to the configured PrintStream . |
Methods inherited from class us.zuercher.gpx2map.util.MessageSink |
---|
write, write, write, write, write, writeLine, writeLine, writeLine, writeLine, writeLine, writeLine, writeLine |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final PrintStream out
PrintStream
to be used for all output.
Constructor Detail |
---|
public PrintStreamMessageSink()
System.out
.
public PrintStreamMessageSink(PrintStream out)
PrintStream
.
out
- output PrintStreamMethod Detail |
---|
public void write(String message)
PrintStream
.
write
in class MessageSink
message
- the message to outputMessageSink.write(String)
public void newLine()
PrintStream
.
newLine
in class MessageSink
MessageSink.newLine()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |