public class StreamingStyledTextOutput extends AbstractStyledTextOutput implements Closeable
StyledTextOutput implementation which writes text to some char stream. Ignores any
styling information.StyledTextOutput.Style| Constructor and Description |
|---|
StreamingStyledTextOutput(Appendable appendable)
Creates a text output which writes text to the given appendable.
|
StreamingStyledTextOutput(StandardOutputListener listener)
Creates a text output which forwards text to the given listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the target object if it implements
Closeable. |
protected void |
doAppend(String text) |
public StreamingStyledTextOutput(StandardOutputListener listener)
listener - The listener.public StreamingStyledTextOutput(Appendable appendable)
appendable - The appendable.protected void doAppend(String text)
doAppend in class AbstractStyledTextOutputpublic void close()
throws IOException
Closeable.close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2013. All rights reserved