com.raritech.xml.sax.filter
Class CDataTrimmer

java.lang.Object
  |
  +--com.raritech.xml.sax.filter.CDataTrimmer
All Implemented Interfaces:
CDataModifier

public class CDataTrimmer
extends java.lang.Object
implements CDataModifier

Trims a string starting after start and ending before endStr


Constructor Summary
CDataTrimmer(java.lang.String startStr, java.lang.String endStr)
           
 
Method Summary
 void filterCData(CDataContent content)
          Filter the character source and send the modified character events to the ContentHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDataTrimmer

public CDataTrimmer(java.lang.String startStr,
                    java.lang.String endStr)
Method Detail

filterCData

public void filterCData(CDataContent content)
Description copied from interface: CDataModifier
Filter the character source and send the modified character events to the ContentHandler
Specified by:
filterCData in interface CDataModifier
Following copied from interface: com.raritech.xml.sax.filter.CDataModifier
Parameters:
cHandler - The ContentHandler that is to receive the modified character events. This is sent by the ProgrammableSAXFilter that utilizes this CDataModifier.
source - the original character array source.
start - the start position of the characters to be filtered by this object.
length - the length of the block of characters to be filtered by this object.