- java.lang.Object
-
- org.xml.sax.helpers.XMLFilterImpl
-
- org.xbib.content.xml.util.XMLFilterReader
-
- 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 XMLFilterReader extends org.xml.sax.helpers.XMLFilterImplA XML reader which is also a filter. Does evaluate namespaces and does not validate or import external entities or document type definitions.
-
-
Constructor Summary
Constructors Constructor Description XMLFilterReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse(org.xml.sax.InputSource input)voidsetFeature(java.lang.String name, boolean value)Saxon uses setFeature, so we override it here, otherwise XmlFilterImpl will bark.-
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, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
setFeature
public void setFeature(java.lang.String name, boolean value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedExceptionSaxon uses setFeature, so we override it here, otherwise XmlFilterImpl will bark.- Specified by:
setFeaturein interfaceorg.xml.sax.XMLReader- Overrides:
setFeaturein classorg.xml.sax.helpers.XMLFilterImpl- Parameters:
name- the namevalue- the value- Throws:
org.xml.sax.SAXNotRecognizedException- if SAX is not recognizedorg.xml.sax.SAXNotSupportedException- if SAX is not supported
-
parse
public void parse(org.xml.sax.InputSource input) throws org.xml.sax.SAXException, java.io.IOException- Specified by:
parsein interfaceorg.xml.sax.XMLReader- Overrides:
parsein classorg.xml.sax.helpers.XMLFilterImpl- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
-