Class ForkingFilter
- java.lang.Object
-
- org.xml.sax.helpers.XMLFilterImpl
-
- com.sun.tools.xjc.reader.xmlschema.bindinfo.ForkingFilter
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler,XMLFilter,XMLReader
public class ForkingFilter extends XMLFilterImpl
XMLFilterthat can fork an event to anotherContentHandlerin the middle.The side handler receives SAX events before the next handler in the filter chain does.
- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description ForkingFilter()ForkingFilter(ContentHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendDocument()voidendElement(String uri, String localName, String qName)voidendPrefixMapping(String prefix)LocatorgetDocumentLocator()ContentHandlergetSideHandler()voidignorableWhitespace(char[] ch, int start, int length)voidsetDocumentLocator(Locator locator)voidstartDocument()voidstartElement(String uri, String localName, String qName, Attributes atts)voidstartForking(String uri, String localName, String qName, Attributes atts, ContentHandler side)Starts the event forking.voidstartPrefixMapping(String prefix, String uri)-
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, unparsedEntityDecl, warning
-
-
-
-
Constructor Detail
-
ForkingFilter
public ForkingFilter()
-
ForkingFilter
public ForkingFilter(ContentHandler next)
-
-
Method Detail
-
getSideHandler
public ContentHandler getSideHandler()
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classXMLFilterImpl
-
getDocumentLocator
public Locator getDocumentLocator()
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classXMLFilterImpl- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classXMLFilterImpl- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classXMLFilterImpl- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classXMLFilterImpl- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classXMLFilterImpl- Throws:
SAXException
-
startForking
public void startForking(String uri, String localName, String qName, Attributes atts, ContentHandler side) throws SAXException
Starts the event forking.- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classXMLFilterImpl- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classXMLFilterImpl- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Overrides:
ignorableWhitespacein classXMLFilterImpl- Throws:
SAXException
-
-