| Modifier and Type | Method and Description |
|---|---|
protected void |
endPrefixMapping(String prefix)
Ends the prefix mapping for the given prefix.
|
ContentHandler |
getContentHandler() |
DTDHandler |
getDTDHandler() |
EntityResolver |
getEntityResolver() |
ErrorHandler |
getErrorHandler() |
boolean |
getFeature(String name) |
protected LexicalHandler |
getLexicalHandler() |
Object |
getProperty(String name)
Throws a
SAXNotRecognizedException exception when the given property does not signify a lexical
handler. |
protected boolean |
hasNamespacePrefixesFeature()
Indicates whether the SAX feature
http://xml.org/sax/features/namespaces-prefixes is turned on. |
protected boolean |
hasNamespacesFeature()
Indicates whether the SAX feature
http://xml.org/sax/features/namespaces is turned on. |
void |
parse(InputSource ignored)
Parse the StAX XML reader passed at construction-time.
|
void |
parse(String ignored)
Parse the StAX XML reader passed at construction-time.
|
protected void |
parseInternal() |
void |
setContentHandler(ContentHandler contentHandler) |
void |
setDTDHandler(DTDHandler dtdHandler) |
void |
setEntityResolver(EntityResolver entityResolver) |
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setFeature(String name,
boolean value) |
void |
setProperty(String name,
Object value)
Throws a
SAXNotRecognizedException exception when the given property does not signify a lexical
handler. |
protected void |
setStandalone(boolean standalone) |
protected void |
startPrefixMapping(String prefix,
String namespace)
Starts the prefix mapping for the given prefix.
|
protected String |
toQualifiedName(QName qName)
Convert a
QName to a qualified name, as used by DOM and SAX. |
protected void parseInternal()
throws SAXException,
XMLStreamException
SAXExceptionXMLStreamExceptionpublic boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionprotected void setStandalone(boolean standalone)
protected boolean hasNamespacesFeature()
http://xml.org/sax/features/namespaces is turned on.protected boolean hasNamespacePrefixesFeature()
http://xml.org/sax/features/namespaces-prefixes is turned on.protected String toQualifiedName(QName qName)
QName to a qualified name, as used by DOM and SAX.
The returned string has a format of prefix:localName if the
prefix is set, or just localName if not.qName - the QNamepublic final void parse(InputSource ignored) throws SAXException
NOTE:: The given InputSource is not read, but ignored.
parse in interface XMLReaderignored - is ignoredSAXException - a SAX exception, possibly wrapping a XMLStreamExceptionpublic final void parse(String ignored) throws SAXException
NOTE:: The given system identifier is not read, but ignored.
parse in interface XMLReaderignored - is ignoredSAXException - A SAX exception, possibly wrapping a XMLStreamExceptionprotected void startPrefixMapping(String prefix, String namespace) throws SAXException
SAXExceptionContentHandler.startPrefixMapping(String, String)protected void endPrefixMapping(String prefix) throws SAXException
SAXExceptionContentHandler.endPrefixMapping(String)public ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic void setContentHandler(ContentHandler contentHandler)
setContentHandler in interface XMLReaderpublic void setDTDHandler(DTDHandler dtdHandler)
setDTDHandler in interface XMLReaderpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic void setEntityResolver(EntityResolver entityResolver)
setEntityResolver in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReaderpublic void setErrorHandler(ErrorHandler errorHandler)
setErrorHandler in interface XMLReaderprotected LexicalHandler getLexicalHandler()
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 XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic 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 XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.