public interface WhiteSpaceHandler
Modifier and Type | Method and Description |
---|---|
void |
endElement()
This is called when an element ends.
|
void |
startElement(java.lang.String displayType,
java.lang.String wrapOption,
java.lang.String linefeedTreatment,
java.lang.String whiteSpaceTreatment,
java.lang.String allSpaceTreatment)
This method is called when a new element/block starts.
|
void |
text(de.infinityloop.downcast.rtflib.RTFOText textNode,
java.lang.String pcdata)
This is called for each contiguous PCDATA block in the source.
|
void startElement(java.lang.String displayType, java.lang.String wrapOption, java.lang.String linefeedTreatment, java.lang.String whiteSpaceTreatment, java.lang.String allSpaceTreatment)
displayType
- the CSS display type (default: inline)wrapOption
- corresponding CSS3 property valuelinefeedTreatment
- corresponding CSS3 property valuewhiteSpaceTreatment
- corresponding CSS3 property valueallSpaceTreatment
- corresponding CSS3 property valuevoid endElement()
void text(de.infinityloop.downcast.rtflib.RTFOText textNode, java.lang.String pcdata)
textNode
- an empty(!) text node. The method is responsible for filling it with the required data.
param the character data that would normally (without WS handling applied) be in the supplied text node, and which must wind up there
ws-minimized after this handler's logic has been applied to it.