public class Driver extends Object implements Locator, XMLReader, Attributes
| Modifier and Type | Field and Description |
|---|---|
protected static String |
APACHE_DYNAMIC_VALIDATION_FEATURE |
protected static String |
APACHE_SCHEMA_VALIDATION_FEATURE |
protected ContentHandler |
contentHandler |
protected static String |
DECLARATION_HANDLER_PROPERTY |
protected ErrorHandler |
errorHandler |
protected static String |
LEXICAL_HANDLER_PROPERTY |
protected static String |
NAMESPACE_PREFIXES_FEATURE |
protected static String |
NAMESPACES_FEATURE |
protected XmlPullParser |
pp |
protected String |
systemId |
protected static String |
VALIDATION_FEATURE |
| Constructor and Description |
|---|
Driver() |
Driver(XmlPullParser pp) |
protected static final String DECLARATION_HANDLER_PROPERTY
protected static final String LEXICAL_HANDLER_PROPERTY
protected static final String NAMESPACES_FEATURE
protected static final String NAMESPACE_PREFIXES_FEATURE
protected static final String VALIDATION_FEATURE
protected static final String APACHE_SCHEMA_VALIDATION_FEATURE
protected static final String APACHE_DYNAMIC_VALIDATION_FEATURE
protected ContentHandler contentHandler
protected ErrorHandler errorHandler
protected String systemId
protected XmlPullParser pp
public Driver()
throws XmlPullParserException
XmlPullParserExceptionpublic Driver(XmlPullParser pp) throws XmlPullParserException
XmlPullParserExceptionpublic int getLength()
getLength in interface Attributespublic String getURI(int index)
getURI in interface Attributespublic String getLocalName(int index)
getLocalName in interface Attributespublic String getQName(int index)
getQName in interface Attributespublic String getType(int index)
getType in interface Attributespublic String getValue(int index)
getValue in interface Attributespublic int getIndex(String uri, String localName)
getIndex in interface Attributespublic int getIndex(String qName)
getIndex in interface Attributespublic String getType(String uri, String localName)
getType in interface Attributespublic String getType(String qName)
getType in interface Attributespublic String getValue(String uri, String localName)
getValue in interface Attributespublic String getValue(String qName)
getValue in interface Attributespublic String getPublicId()
getPublicId in interface Locatorpublic String getSystemId()
getSystemId in interface Locatorpublic int getLineNumber()
getLineNumber in interface Locatorpublic int getColumnNumber()
getColumnNumber in interface Locatorpublic boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic void setDTDHandler(DTDHandler handler)
setDTDHandler in interface XMLReaderpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic void setContentHandler(ContentHandler handler)
setContentHandler in interface XMLReaderpublic ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReaderpublic void parse(InputSource source) throws SAXException, IOException
parse in interface XMLReaderSAXExceptionIOExceptionpublic void parse(String systemId) throws SAXException, IOException
parse in interface XMLReaderSAXExceptionIOExceptionpublic void parseSubTree(XmlPullParser pp) throws SAXException, IOException
SAXExceptionIOExceptionprotected void startElement(String namespace, String localName, String qName) throws SAXException
startElement
on the ContentHandler with this driver object as the
Attributes implementation. In default implementation
Attributes object is valid only during this method call and may not
be stored. Sub-classes can overwrite this method to cache attributes.SAXExceptionCopyright © 2013. All Rights Reserved.