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:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, 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(XMLReader parent)
          Constructs a new instance.
 
Method Summary
 List getHandlers()
          Returns the list of handlers.
 void processingInstruction(String target, String data)
          DOCUMENT ME!
 void setHandlers(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(XMLReader parent)
Constructs a new instance.

Parameters:
reader - The parent reader.
Method Detail

processingInstruction

public void processingInstruction(String target,
                                  String data)
                           throws SAXException
DOCUMENT ME!

Specified by:
processingInstruction in interface ContentHandler
Overrides:
processingInstruction in class org.xml.sax.helpers.XMLFilterImpl
Parameters:
target - DOCUMENT ME!
data - DOCUMENT ME!
Throws:
SAXException - DOCUMENT ME!

setHandlers

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

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

getHandlers

public List getHandlers()
Returns the list of handlers.

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


Copyright © 2006-2013. All Rights Reserved.