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, toString
public void setContentHandler(ContentHandler handler)
setContentHandler
in interface XMLReader
setContentHandler
in class DTDSuppressingXMLReader
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty
in interface XMLReader
setProperty
in class DTDSuppressingXMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void parse(InputSource input) throws IOException, SAXException
parse
in interface XMLReader
parse
in class DTDSuppressingXMLReader
IOException
SAXException