org.odftoolkit.simple.common
public class WhitespaceProcessor extends Object
Constructor and Description |
---|
WhitespaceProcessor() |
Modifier and Type | Method and Description |
---|---|
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) |
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 retrieveTextExtractor.getText(OdfElement)
public static void appendText(Element element, String content)
element
- the element to which content is being addedcontent
- text content including whitespaceCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.