public class OdfWhitespaceProcessor extends Object
Constructor and Description |
---|
OdfWhitespaceProcessor() |
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)
Retrieve the text content of an element.
|
public void append(Element element, String content)
element
- the element to which content is being addedcontent
- text content including whitespacepublic String getText(Node element)
<text:s>
,
<text:line-break>
and <text:tab>
.element
- an element whose text you want to retrievepublic static void appendText(Element element, String content)
element
- the element to which content is being addedcontent
- text content including whitespaceCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.