Driver

public class Driver extends Object
implements Locator XMLReader Attributes

SAX2 Driver that pulls events from XmlPullParser and comverts them into SAX2 callbacks.

Constant Summary

String APACHE_DYNAMIC_VALIDATION_FEATURE
String APACHE_SCHEMA_VALIDATION_FEATURE
String DECLARATION_HANDLER_PROPERTY
String LEXICAL_HANDLER_PROPERTY
String NAMESPACES_FEATURE
String NAMESPACE_PREFIXES_FEATURE
String VALIDATION_FEATURE

Field Summary

protected ContentHandler contentHandler
protected ErrorHandler errorHandler
protected XmlPullParser pp
protected String systemId

Public Constructor Summary

Driver()

Public Method Summary

int
getColumnNumber()
Return the column number where the current document event ends.
ContentHandler
getContentHandler()
Return the current content handler.
DTDHandler
getDTDHandler()
Return the current DTD handler.
EntityResolver
getEntityResolver()
Return the current entity resolver.
ErrorHandler
getErrorHandler()
Return the current error handler.
boolean
getFeature(String name)
Look up the value of a feature flag.
int
getIndex(String qName)
Look up the index of an attribute by XML qualified (prefixed) name.
int
getIndex(String uri, String localName)
Look up the index of an attribute by Namespace name.
int
getLength()
Return the number of attributes in the list.
int
getLineNumber()
Return the line number where the current document event ends.
String
getLocalName(int index)
Look up an attribute's local name by index.
Object
getProperty(String name)
Look up the value of a property.
String
getPublicId()
Return the public identifier for the current document event.
String
getQName(int index)
Look up an attribute's XML qualified (prefixed) name by index.
String
getSystemId()
Return the system identifier for the current document event.
String
getType(int index)
Look up an attribute's type by index.
String
getType(String uri, String localName)
Look up an attribute's type by Namespace name.
String
getType(String qName)
Look up an attribute's type by XML qualified (prefixed) name.
String
getURI(int index)
Look up an attribute's Namespace URI by index.
String
getValue(int index)
Look up an attribute's value by index.
String
getValue(String qName)
Look up an attribute's value by XML qualified (prefixed) name.
String
getValue(String uri, String localName)
Look up an attribute's value by Namespace name.
void
parse(String systemId)
Parse an XML document from a system identifier (URI).
void
parse(InputSource source)
Parse an XML document.
void
void
setContentHandler(ContentHandler handler)
Allow an application to register a content event handler.
void
setDTDHandler(DTDHandler handler)
Allow an application to register a DTD event handler.
void
setEntityResolver(EntityResolver resolver)
Allow an application to register an entity resolver.
void
setErrorHandler(ErrorHandler handler)
Allow an application to register an error event handler.
void
setFeature(String name, boolean value)
Set the value of a feature flag.
void
setProperty(String name, Object value)
Set the value of a property.

Protected Method Summary

void
startElement(String namespace, String localName, String qName)
Calls startElement on the ContentHandler with this driver object as the Attributes implementation.

Inherited Method Summary