Added in API level 1

Driver

open class Driver : Attributes, Locator, XMLReader
kotlin.Any
   ↳ org.xmlpull.v1.sax2.Driver

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

Summary

Constants
static String

static String

static String

static String

static String

static String

static String

Public constructors

Public methods
open Int

open ContentHandler!

open DTDHandler!

open EntityResolver!

open ErrorHandler!

open Boolean

open Int
getIndex(qName: String!)

open Int
getIndex(uri: String!, localName: String!)

open Int

open Int

open String!
getLocalName(index: Int)

open Any!

open String!

open String!
getQName(index: Int)

open String!

open String!
getType(index: Int)

open String!
getType(qName: String!)

open String!
getType(uri: String!, localName: String!)

open String!
getURI(index: Int)

open String!
getValue(index: Int)

open String!
getValue(qName: String!)

open String!
getValue(uri: String!, localName: String!)

open Unit
parse(systemId: String!)

open Unit
parse(source: InputSource!)

open Unit

open Unit

open Unit

open Unit

open Unit

open Unit
setFeature(name: String!, value: Boolean)

open Unit
setProperty(name: String!, value: Any!)

Protected methods
open Unit
startElement(namespace: String!, localName: String!, qName: String!)

Calls startElement on the ContentHandler with this driver object as the Attributes implementation.

Properties
ContentHandler!

ErrorHandler!

XmlPullParser!

String!

Constants

APACHE_DYNAMIC_VALIDATION_FEATURE

Added in API level 1
protected static val APACHE_DYNAMIC_VALIDATION_FEATURE: String
Value: "http://apache.org/xml/features/validation/dynamic"

APACHE_SCHEMA_VALIDATION_FEATURE

Added in API level 1
protected static val APACHE_SCHEMA_VALIDATION_FEATURE: String
Value: "http://apache.org/xml/features/validation/schema"

DECLARATION_HANDLER_PROPERTY

Added in API level 1
protected static val DECLARATION_HANDLER_PROPERTY: String
Value: "http://xml.org/sax/properties/declaration-handler"

LEXICAL_HANDLER_PROPERTY

Added in API level 1
protected static val LEXICAL_HANDLER_PROPERTY: String
Value: "http://xml.org/sax/properties/lexical-handler"

NAMESPACES_FEATURE

Added in API level 1
protected static val NAMESPACES_FEATURE: String
Value: "http://xml.org/sax/features/namespaces"

NAMESPACE_PREFIXES_FEATURE

Added in API level 1
protected static val NAMESPACE_PREFIXES_FEATURE: String
Value: "http://xml.org/sax/features/namespace-prefixes"

VALIDATION_FEATURE

Added in API level 1
protected static val VALIDATION_FEATURE: String
Value: "http://xml.org/sax/features/validation"

Public constructors

Driver

Added in API level 1
Driver()

Driver

Added in API level 1
Driver(pp: XmlPullParser!)

Public methods

getColumnNumber

Added in API level 1
open fun getColumnNumber(): Int
Return
Int The column number, or -1 if none is available.

getContentHandler

Added in API level 1
open fun getContentHandler(): ContentHandler!
Return
ContentHandler! The current content handler, or null if none has been registered.

getDTDHandler

Added in API level 1
open fun getDTDHandler(): DTDHandler!
Return
DTDHandler! The current DTD handler, or null if none has been registered.

getEntityResolver

Added in API level 1
open fun getEntityResolver(): EntityResolver!
Return
EntityResolver! The current entity resolver, or null if none has been registered.

getErrorHandler

Added in API level 1
open fun getErrorHandler(): ErrorHandler!
Return
ErrorHandler! The current error handler, or null if none has been registered.

getFeature

Added in API level 1
open fun getFeature(name: String!): Boolean
Parameters
name String!: The feature name, which is a fully-qualified URI.
Return
Boolean The current value of the feature (true or false).

getIndex

Added in API level 1
open fun getIndex(qName: String!): Int
Parameters
qName String!: The qualified (prefixed) name.
Return
Int The index of the attribute, or -1 if it does not appear in the list.

getIndex

Added in API level 1
open fun getIndex(
    uri: String!,
    localName: String!
): Int
Parameters
uri String!: The Namespace URI, or the empty string if the name has no Namespace URI.
localName String!: The attribute's local name.
Return
Int The index of the attribute, or -1 if it does not appear in the list.

getLength

Added in API level 1
open fun getLength(): Int
Return
Int The number of attributes in the list.

getLineNumber

Added in API level 1
open fun getLineNumber(): Int
Return
Int The line number, or -1 if none is available.

getLocalName

Added in API level 1
open fun getLocalName(index: Int): String!
Parameters
index Int: The attribute index (zero-based).
Return
String! The local name, or the empty string if Namespace processing is not being performed, or null if the index is out of range.

getProperty

Added in API level 1
open fun getProperty(name: String!): Any!
Parameters
name String!: The property name, which is a fully-qualified URI.
Return
Any! The current value of the property.

getPublicId

Added in API level 1
open fun getPublicId(): String!
Return
String! A string containing the public identifier, or null if none is available.

getQName

Added in API level 1
open fun getQName(index: Int): String!
Parameters
index Int: The attribute index (zero-based).
Return
String! The XML qualified name, or the empty string if none is available, or null if the index is out of range.

getSystemId

Added in API level 1
open fun getSystemId(): String!
Return
String! A string containing the system identifier, or null if none is available.

getType

Added in API level 1
open fun getType(index: Int): String!
Parameters
index Int: The attribute index (zero-based).
Return
String! The attribute's type as a string, or null if the index is out of range.

getType

Added in API level 1
open fun getType(qName: String!): String!
Parameters
qName String!: The XML qualified name.
Return
String! The attribute type as a string, or null if the attribute is not in the list or if qualified names are not available.

getType

Added in API level 1
open fun getType(
    uri: String!,
    localName: String!
): String!
Parameters
uri String!: The Namespace URI, or the empty String if the name has no Namespace URI.
localName String!: The local name of the attribute.
Return
String! The attribute type as a string, or null if the attribute is not in the list or if Namespace processing is not being performed.

getURI

Added in API level 1
open fun getURI(index: Int): String!
Parameters
index Int: The attribute index (zero-based).
Return
String! The Namespace URI, or the empty string if none is available, or null if the index is out of range.

getValue

Added in API level 1
open fun getValue(index: Int): String!
Parameters
index Int: The attribute index (zero-based).
Return
String! The attribute's value as a string, or null if the index is out of range.

getValue

Added in API level 1
open fun getValue(qName: String!): String!
Parameters
qName String!: The XML qualified name.
Return
String! The attribute value as a string, or null if the attribute is not in the list or if qualified names are not available.

getValue

Added in API level 1
open fun getValue(
    uri: String!,
    localName: String!
): String!
Parameters
uri String!: The Namespace URI, or the empty String if the name has no Namespace URI.
localName String!: The local name of the attribute.
Return
String! The attribute value as a string, or null if the attribute is not in the list.

parse

Added in API level 1
open fun parse(systemId: String!): Unit
Parameters
systemId String!: The system identifier (URI).

parse

Added in API level 1
open fun parse(source: InputSource!): Unit
Parameters
input The input source for the top-level of the XML document.

parseSubTree

Added in API level 1
open fun parseSubTree(pp: XmlPullParser!): Unit

setContentHandler

Added in API level 1
open fun setContentHandler(handler: ContentHandler!): Unit
Parameters
handler ContentHandler!: The content handler.

setDTDHandler

Added in API level 1
open fun setDTDHandler(handler: DTDHandler!): Unit
Parameters
handler DTDHandler!: The DTD handler.

setEntityResolver

Added in API level 1
open fun setEntityResolver(resolver: EntityResolver!): Unit
Parameters
resolver EntityResolver!: The entity resolver.

setErrorHandler

Added in API level 1
open fun setErrorHandler(handler: ErrorHandler!): Unit
Parameters
handler ErrorHandler!: The error handler.

setFeature

Added in API level 1
open fun setFeature(
    name: String!,
    value: Boolean
): Unit
Parameters
name String!: The feature name, which is a fully-qualified URI.
value Boolean: The requested value of the feature (true or false).

setProperty

Added in API level 1
open fun setProperty(
    name: String!,
    value: Any!
): Unit
Parameters
name String!: The property name, which is a fully-qualified URI.
value Any!: The requested value for the property.

Protected methods

startElement

Added in API level 1
protected open fun startElement(
    namespace: String!,
    localName: String!,
    qName: String!
): Unit

Calls 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.

Properties

contentHandler

Added in API level 1
protected var contentHandler: ContentHandler!

errorHandler

Added in API level 1
protected var errorHandler: ErrorHandler!

pp

Added in API level 1
protected var pp: XmlPullParser!

systemId

Added in API level 1
protected var systemId: String!