|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.simple.common.WhitespaceProcessor
public class WhitespaceProcessor
It's a tool class to help process white space.
Constructor Summary | |
---|---|
WhitespaceProcessor()
|
Method Summary | |
---|---|
void |
append(Element element,
String content)
Add given text content to an element, handling multiple blanks, tabs, and newlines properly. |
static void |
appendText(Element element,
String content)
Append text content to a given element, handling whitespace properly. |
String |
getText(Node element)
Deprecated. As of Simple version 0.3.5, replaced by TextExtractor.getText(OdfElement) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WhitespaceProcessor()
Method Detail |
---|
public void append(Element element, String content)
element
- the element to which content is being addedcontent
- text content including whitespacepublic String getText(Node element)
TextExtractor.getText(OdfElement)
<text:s>
, <text:line-break>
and <text:tab>
.
element
- an element whose text you want to retrieve
TextExtractor.getText(OdfElement)
public static void appendText(Element element, String content)
element
- the element to which content is being addedcontent
- text content including whitespace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |