public abstract class AbstractXmlReader extends Object implements XMLReader
XMLReader
implementations. Contains properties as defined in XMLReader
, and does not recognize any featuressetContentHandler(org.xml.sax.ContentHandler)
,
setDTDHandler(org.xml.sax.DTDHandler)
,
setEntityResolver(org.xml.sax.EntityResolver)
,
setErrorHandler(org.xml.sax.ErrorHandler)
Constructor and Description |
---|
AbstractXmlReader() |
Modifier and Type | Method and Description |
---|---|
ContentHandler |
getContentHandler() |
DTDHandler |
getDTDHandler() |
EntityResolver |
getEntityResolver() |
ErrorHandler |
getErrorHandler() |
boolean |
getFeature(String name)
Throws a
SAXNotRecognizedException exception. |
protected LexicalHandler |
getLexicalHandler() |
Object |
getProperty(String name)
Throws a
SAXNotRecognizedException exception when the given property does not signify a lexical
handler. |
void |
setContentHandler(ContentHandler contentHandler) |
void |
setDTDHandler(DTDHandler dtdHandler) |
void |
setEntityResolver(EntityResolver entityResolver) |
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setFeature(String name,
boolean value)
Throws a
SAXNotRecognizedException exception. |
void |
setProperty(String name,
Object value)
Throws a
SAXNotRecognizedException exception when the given property does not signify a lexical
handler. |
public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
public void setContentHandler(ContentHandler contentHandler)
setContentHandler
in interface XMLReader
public void setDTDHandler(DTDHandler dtdHandler)
setDTDHandler
in interface XMLReader
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
public EntityResolver getEntityResolver()
getEntityResolver
in interface XMLReader
public void setEntityResolver(EntityResolver entityResolver)
setEntityResolver
in interface XMLReader
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
public void setErrorHandler(ErrorHandler errorHandler)
setErrorHandler
in interface XMLReader
protected LexicalHandler getLexicalHandler()
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
exception.getFeature
in interface XMLReader
SAXNotRecognizedException
- alwaysSAXNotSupportedException
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
exception.setFeature
in interface XMLReader
SAXNotRecognizedException
- alwaysSAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
exception when the given property does not signify a lexical
handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler
.getProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
exception when the given property does not signify a lexical
handler. The property name for a lexical handler is http://xml.org/sax/properties/lexical-handler
.setProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
Copyright © 2020 Pivotal Software. All rights reserved.