public class StreamingStyledTextOutput extends AbstractStyledTextOutput implements java.io.Closeable
StyledTextOutput implementation which writes text to some char stream. Ignores any
styling information.StyledTextOutput.Style| Constructor and Description |
|---|
StreamingStyledTextOutput(java.lang.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(java.lang.String text) |
public StreamingStyledTextOutput(StandardOutputListener listener)
listener - The listener.public StreamingStyledTextOutput(java.lang.Appendable appendable)
appendable - The appendable.protected void doAppend(java.lang.String text)
doAppend in class AbstractStyledTextOutputpublic void close()
throws java.io.IOException
Closeable.close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2013. All rights reserved