com.agilejava.docbkx.maven
Class PreprocessingFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by com.agilejava.docbkx.maven.PreprocessingFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public class PreprocessingFilter
extends org.xml.sax.helpers.XMLFilterImpl

A XMLFilter managing a collection of ProcessingInstructionHandlers, using them to handle processing instructions encountered while parsing the XML document.

Author:
Wilfred Springer

Constructor Summary
PreprocessingFilter(org.xml.sax.XMLReader parent)
          Constructs a new instance.
 
Method Summary
 java.util.List getHandlers()
          Returns the list of handlers.
 void processingInstruction(java.lang.String target, java.lang.String data)
           
 void setHandlers(java.util.List handlers)
          Sets the list of handlers.
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreprocessingFilter

public PreprocessingFilter(org.xml.sax.XMLReader parent)
Constructs a new instance.

Parameters:
reader - The parent reader.
Method Detail

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws org.xml.sax.SAXException
Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Overrides:
processingInstruction in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException

setHandlers

public void setHandlers(java.util.List handlers)
Sets the list of handlers.

Parameters:
handlers - The list of handlers to which this filter might delegate.

getHandlers

public java.util.List getHandlers()
Returns the list of handlers.

Returns:
The list of handlers to which this filter might delegate.


Copyright © 2006-2009. All Rights Reserved.