de.infinityloop.downcast.rtflib
Interface WhiteSpaceHandler


public interface WhiteSpaceHandler

Whitespace handler/minimizer interface


Method Summary
 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.
 

Method Detail

startElement

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.

Parameters:
displayType - the CSS display type (default: inline)
wrapOption - corresponding CSS3 property value
linefeedTreatment - corresponding CSS3 property value
whiteSpaceTreatment - corresponding CSS3 property value
allSpaceTreatment - corresponding CSS3 property value

endElement

void endElement()
This is called when an element ends.


text

void text(de.infinityloop.downcast.rtflib.RTFOText textNode,
          java.lang.String pcdata)
This is called for each contiguous PCDATA block in the source.

Parameters:
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.