public class DTDSuppressingXMLReader
extends Object
implements XMLReader
| Modifier and Type | Field and Description |
|---|---|
protected XMLReader |
reader
The wrapped XML reader to which all methods are delegated
|
| Constructor and Description |
|---|
DTDSuppressingXMLReader()
Construct the XML reader and set a flag on it to avoid loading
external DTDs
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ContentHandler |
getContentHandler() |
DTDHandler |
getDTDHandler() |
EntityResolver |
getEntityResolver() |
ErrorHandler |
getErrorHandler() |
boolean |
getFeature(String name) |
Object |
getProperty(String name) |
int |
hashCode() |
void |
parse(InputSource input) |
void |
parse(String systemId) |
void |
setContentHandler(ContentHandler handler) |
void |
setDTDHandler(DTDHandler handler) |
void |
setEntityResolver(EntityResolver resolver) |
void |
setErrorHandler(ErrorHandler handler) |
void |
setFeature(String name,
boolean value) |
void |
setProperty(String name,
Object value) |
String |
toString() |
protected XMLReader reader
public DTDSuppressingXMLReader()
public boolean equals(Object obj)
equals in class Objectpublic ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReaderpublic boolean getFeature(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
getFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic Object getProperty(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
getProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic int hashCode()
hashCode in class Objectpublic void parse(String systemId)
throws IOException,
SAXException
parse in interface XMLReaderIOExceptionSAXExceptionpublic void parse(InputSource input)
throws IOException,
SAXException
parse in interface XMLReaderIOExceptionSAXExceptionpublic void setContentHandler(ContentHandler handler)
setContentHandler in interface XMLReaderpublic void setDTDHandler(DTDHandler handler)
setDTDHandler in interface XMLReaderpublic void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface XMLReaderpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface XMLReaderpublic void setFeature(String name,
boolean value)
throws SAXNotRecognizedException,
SAXNotSupportedException
setFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
setProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic String toString()
toString in class Object