class XMLStubReader extends DTDSuppressingXMLReader
| Modifier and Type | Class and Description |
|---|---|
private class |
XMLStubReader.GetOut
Thrown after the first element end marker is found
|
private class |
XMLStubReader.StubContentHandler
Handles content events from the XML parser.
|
private class |
XMLStubReader.StubLexicalHandler
Handles 'lexical' events.
|
reader| Constructor and Description |
|---|
XMLStubReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
parse(InputSource input)
Parse the input document, but stop at the first end-element marker
|
void |
setContentHandler(ContentHandler handler)
Establish the content handler that will receive events.
|
void |
setProperty(String name,
Object value)
Catch requests to set the "lexical handler".
|
equals, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, hashCode, parse, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, toStringpublic void setContentHandler(ContentHandler handler)
setContentHandler in interface XMLReadersetContentHandler in class DTDSuppressingXMLReaderpublic void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
setProperty in interface XMLReadersetProperty in class DTDSuppressingXMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void parse(InputSource input)
throws IOException,
SAXException
parse in interface XMLReaderparse in class DTDSuppressingXMLReaderIOExceptionSAXException