private class SimpleStyledEditor.TextReader extends Object implements XMLConsumer
Modifier and Type | Field and Description |
---|---|
private boolean |
boldf |
private boolean |
italicf |
private String |
lastString |
private boolean |
underlinef |
Constructor and Description |
---|
TextReader(String text) |
Modifier and Type | Method and Description |
---|---|
boolean |
consumeElement(XMLElement e)
Process an XML element.
|
void |
consumeText(String s)
Process text.
|
private void |
insertString() |
private void |
insertString(String s) |
private String lastString
private boolean italicf
private boolean boldf
private boolean underlinef
TextReader(String text)
public void consumeText(String s)
XMLConsumer
consumeText
in interface XMLConsumer
s
- The text to process.private void insertString()
private void insertString(String s)
public boolean consumeElement(XMLElement e)
XMLConsumer
consumeElement
in interface XMLConsumer
e
- The XMLElement
to process.true
is returned,
the parser treats all subsequent whitespace literally. If
false
is returned, the parser collapses contiguous
sequences of whitespace into a single space (the default
mode). Whitespace in this context denotes spaces, tabs,
newlines, and formfeed characters.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses