org.apache.axiom.util.sax
Class AbstractXMLReader
java.lang.Object
org.apache.axiom.util.sax.AbstractXMLReader
- All Implemented Interfaces:
- XMLReader
- Direct Known Subclasses:
- OMXMLReader
public abstract class AbstractXMLReader
- extends Object
- implements XMLReader
Partial implementation of the XMLReader
interface. It implements all the getters and
setters so that subclasses only need to implement XMLReader.parse(InputSource)
and
XMLReader.parse(String)
. Subclasses can access the various handlers and properties set on
the reader through protected attributes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
namespaces
protected boolean namespaces
namespacePrefixes
protected boolean namespacePrefixes
contentHandler
protected ContentHandler contentHandler
lexicalHandler
protected LexicalHandler lexicalHandler
dtdHandler
protected DTDHandler dtdHandler
entityResolver
protected EntityResolver entityResolver
errorHandler
protected ErrorHandler errorHandler
AbstractXMLReader
public AbstractXMLReader()
getContentHandler
public ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interface XMLReader
setContentHandler
public void setContentHandler(ContentHandler contentHandler)
- Specified by:
setContentHandler
in interface XMLReader
getDTDHandler
public DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interface XMLReader
setDTDHandler
public void setDTDHandler(DTDHandler dtdHandler)
- Specified by:
setDTDHandler
in interface XMLReader
getEntityResolver
public EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interface XMLReader
setEntityResolver
public void setEntityResolver(EntityResolver entityResolver)
- Specified by:
setEntityResolver
in interface XMLReader
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interface XMLReader
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- Specified by:
setErrorHandler
in interface XMLReader
getFeature
public boolean getFeature(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
getFeature
in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setFeature
public void setFeature(String name,
boolean value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setFeature
in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
getProperty
public Object getProperty(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
getProperty
in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
setProperty
public void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
- Specified by:
setProperty
in interface XMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.