Język

Driver Class

Definition

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

[Android.Runtime.Register("org/xmlpull/v1/sax2/Driver", DoNotGenerateAcw=true)]
public class Driver : Java.Lang.Object, IDisposable, Org.Xml.Sax.IAttributes, Org.Xml.Sax.ILocator, Org.Xml.Sax.IXMLReader
[<Android.Runtime.Register("org/xmlpull/v1/sax2/Driver", DoNotGenerateAcw=true)>]
type Driver = class
    inherit Object
    interface IAttributes
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface ILocator
    interface IXMLReader
Inheritance
Attributes
Implements

Remarks

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

Java documentation for org.xmlpull.v1.sax2.Driver.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Name Description
Driver()

Initializes a new Driver with a namespace-aware XML pull parser.

Driver(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Driver(XmlReader)

Initializes a new Driver with the specified XML pull parser.

Fields

Name Description
ApacheDynamicValidationFeature

Identifies the Apache dynamic-validation feature.

ApacheSchemaValidationFeature

Identifies the Apache schema-validation feature.

DeclarationHandlerProperty

Identifies the SAX declaration-handler property.

LexicalHandlerProperty

Identifies the SAX lexical-handler property.

NamespacePrefixesFeature

Identifies the SAX namespace-prefixes feature.

NamespacesFeature

Identifies the SAX namespaces feature.

ValidationFeature

Identifies the SAX validation feature.

Properties

Name Description
Class

Returns the runtime class of this Object.

(Inherited from Object)
ColumnNumber

Return the column number where the current document event ends.

ContentHandler

Return the current content handler.

DTDHandler

Gets or sets the DTD handler. DTD handlers are not supported by this driver.

EntityResolver

Gets or sets the entity resolver. Entity resolvers are not supported by this driver.

ErrorHandler

Return the current error handler.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode

Gets the identity hash code assigned to this Java peer by the interop runtime.

(Inherited from Object)
JniManagedPeerState (Inherited from JavaObject)
JniPeerMembers

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Length

Return the number of attributes in the list.

LineNumber

Return the line number where the current document event ends.

PeerReference

Gets the JNI object reference for this Java peer.

(Inherited from Object)
Pp

Gets or sets the XML pull parser used by this driver.

PublicId

Return the public identifier for the current document event.

SystemId

Return the system identifier for the current document event.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Name Description
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Construct(JniObjectReference, JniObjectReferenceOptions) (Inherited from JavaObject)
Dispose()

Releases the resources held by this Java peer.

(Inherited from Object)
Dispose(Boolean)

Releases the resources held by this Java peer.

(Inherited from Object)
DisposeUnlessReferenced() (Inherited from JavaObject)
Equals(Object) (Inherited from JavaObject)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetFeature(String)

Look up the value of a feature flag.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetIndex(String, String)

Looks up the index of an attribute by namespace URI and parser-reported name.

GetIndex(String)

Looks up the index of an attribute by its parser-reported name.

GetLocalName(Int32)

Look up an attribute's local name by index.

GetProperty(String)

Look up the value of a property.

GetQName(Int32)

Look up an attribute's XML qualified (prefixed) name by index.

GetType(Int32)

Look up an attribute's type by index.

GetType(String, String)

Looks up an attribute's type by namespace URI and parser-reported name.

GetType(String)

Looks up an attribute's type by its parser-reported name.

GetURI(Int32)

Look up an attribute's Namespace URI by index.

GetValue(Int32)

Look up an attribute's value by index.

GetValue(String, String)

Looks up an attribute's value by parser-reported name and optional namespace URI.

GetValue(String)

Looks up an attribute's value by its parser-reported name in any namespace.

JavaFinalize()
Obsolete.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Parse(InputSource)

Parse an XML document.

Parse(String)

Parse an XML document from a system identifier (URI).

ParseAsync(InputSource)

Asynchronously parses an XML document from the specified input source.

ParseAsync(String)

Asynchronously parses an XML document from a system identifier.

ParseSubTree(XmlReader)

Parses the subtree rooted at the current start tag.

ParseSubTreeAsync(XmlReader)

Asynchronously parses the subtree at the current parser position.

SetFeature(String, Boolean)

Set the value of a feature flag.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions) (Inherited from JavaObject)
SetProperty(String, Object)

Set the value of a property.

StartElement(String, String, String)

Calls ContentHandler#startElement(String, String, String, Attributes) startElement on the ContentHandler with this driver object as the Attributes implementation.

ToArray<T>()

Creates a managed array from this Java array wrapper.

(Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime()

Unregisters this Java peer from the interop runtime.

(Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

Name Description
IJavaPeerable.Disposed() (Inherited from JavaObject)
IJavaPeerable.Finalized() (Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock (Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from JavaObject)
IJavaPeerable.UnregisterFromRuntime()

Extension Methods

Name Description
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
ParseAsync(IXMLReader, InputSource)

Asynchronously parses an XML document from an input source.

ParseAsync(IXMLReader, String)

Asynchronously parses an XML document from a system identifier.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to