public class OffsetIndicationPrinter extends Object implements MessageReceiver<SimpleMessage<String>>
Modifier and Type | Field and Description |
---|---|
protected PrintWriter |
out |
Constructor and Description |
---|
OffsetIndicationPrinter()
Prints to
System.err , using default encoding. |
OffsetIndicationPrinter(OutputStream os)
Prints to a newly created
PrintWriter to the OutputStream
provided.Consequently using a default encoding. |
OffsetIndicationPrinter(PrintWriter out)
|
Modifier and Type | Method and Description |
---|---|
void |
receive(SimpleMessage<String> message)
Print the message to the output stream.
First the id is printed (= the document contents), then a newline, an indentation, a caret symbol, the message kind and the message text. |
protected final PrintWriter out
public OffsetIndicationPrinter()
System.err
, using default encoding.public OffsetIndicationPrinter(OutputStream os)
PrintWriter
to the OutputStream
provided.public OffsetIndicationPrinter(PrintWriter out)
public void receive(SimpleMessage<String> message)
flushed
explicitly.receive
in interface MessageReceiver<SimpleMessage<String>>
see also the complete user documentation .