public class LinePrefixingStyledTextOutput extends AbstractLineChoppingStyledTextOutput
StyledTextOutput which prefixes each line of text with some fixed prefix. Does not prefix the first line.StyledTextOutput.Style| Constructor and Description |
|---|
LinePrefixingStyledTextOutput(StyledTextOutput output,
CharSequence prefix) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doLineText(CharSequence text,
boolean terminatesLine)
Called when text is to be appended.
|
protected void |
doStartLine()
Called before text is about to be appended to the start of a line.
|
protected void |
doStyleChange(StyledTextOutput.Style style) |
doAppend, doFinishLinepublic LinePrefixingStyledTextOutput(StyledTextOutput output, CharSequence prefix)
protected void doLineText(CharSequence text, boolean terminatesLine)
AbstractLineChoppingStyledTextOutputdoLineText in class AbstractLineChoppingStyledTextOutputtext - The text.terminatesLine - true if the given text terminates a line (including the end-of-line string).protected void doStartLine()
AbstractLineChoppingStyledTextOutputdoStartLine in class AbstractLineChoppingStyledTextOutputprotected void doStyleChange(StyledTextOutput.Style style)
doStyleChange in class AbstractStyledTextOutputCopyright © 2013. All rights reserved