Class WhitespaceCollapser
- java.lang.Object
-
- org.apache.fop.render.rtf.rtflib.rtfdoc.WhitespaceCollapser
-
final class WhitespaceCollapser extends java.lang.Object
Collapses whitespace of an RtfContainer that contains RtfText elements.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
lastEndSpace
private static java.lang.String
SPACE
-
Constructor Summary
Constructors Constructor Description WhitespaceCollapser(RtfContainer c)
Remove extra whitespace in RtfText elements that are inside container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getLastEndSpace()
private java.lang.String
processString(java.lang.String txt)
process one Stringprivate void
processString(RtfString txt)
process one RtfString from our containerprivate void
processText(RtfText txt)
process one RtfText from our container
-
-
-
Field Detail
-
SPACE
private static final java.lang.String SPACE
- See Also:
- Constant Field Values
-
lastEndSpace
private boolean lastEndSpace
-
-
Constructor Detail
-
WhitespaceCollapser
WhitespaceCollapser(RtfContainer c)
Remove extra whitespace in RtfText elements that are inside container.- Parameters:
c
- the container
-
-
Method Detail
-
getLastEndSpace
public boolean getLastEndSpace()
- Returns:
- last end space
-
processText
private void processText(RtfText txt)
process one RtfText from our container
-
processString
private void processString(RtfString txt)
process one RtfString from our container
-
processString
private java.lang.String processString(java.lang.String txt)
process one String
-
-