sk.baka.ikslibs.sax
Class SAXProcessorFilter

java.lang.Object
  extended by sk.baka.ikslibs.sax.ContentHandlerDelegate
      extended by sk.baka.ikslibs.sax.SAXEventTypeFilter
          extended by sk.baka.ikslibs.sax.SAXProcessorFilter
All Implemented Interfaces:
ContentHandler

public class SAXProcessorFilter
extends SAXEventTypeFilter

Processes SAX events.

Author:
Martin Vysny

Field Summary
 
Fields inherited from class sk.baka.ikslibs.sax.ContentHandlerDelegate
sink
 
Constructor Summary
SAXProcessorFilter(ContentHandler sink, XMLSerializeBean serializeBean)
          Creates instance of the filter.
 
Method Summary
static EnumSet<SAXEventKindEnum> getSuppressedEvents(XMLSerializeBean serializeBean)
          Returns set of event kinds that are suppressed by the configuration bean.
 
Methods inherited from class sk.baka.ikslibs.sax.SAXEventTypeFilter
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from class sk.baka.ikslibs.sax.ContentHandlerDelegate
setDocumentLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXProcessorFilter

public SAXProcessorFilter(ContentHandler sink,
                          XMLSerializeBean serializeBean)
Creates instance of the filter.

Parameters:
sink - receives events.
serializeBean - Events are modified according these settings.
Method Detail

getSuppressedEvents

public static EnumSet<SAXEventKindEnum> getSuppressedEvents(XMLSerializeBean serializeBean)
Returns set of event kinds that are suppressed by the configuration bean.

Parameters:
serializeBean - the bean
Returns:
all events that are directly suppressed by the bean. The CDATA kind will never be present in the result regardless of the XMLSerializeBean.isCdataSections() setting.


Copyright © 2006 Martin Vysny - baka. All Rights Reserved.