IParser Interface

Definition

Caution

This class is obsoleted in this android platform

Basic interface for SAX (Simple API for XML) parsers.

[Android.Runtime.Register("org/xml/sax/Parser", "", "Org.Xml.Sax.IParserInvoker")]
[System.Obsolete("This class is obsoleted in this android platform")]
public interface IParser : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("org/xml/sax/Parser", "", "Org.Xml.Sax.IParserInvoker")>]
[<System.Obsolete("This class is obsoleted in this android platform")>]
type IParser = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Derived
Attributes
Implements

Remarks

Basic interface for SAX (Simple API for XML) parsers.

<blockquote> <em>This module, both source code and documentation, is in the Public Domain, and comes with <strong>NO WARRANTY</strong>.</em> See http://www.saxproject.org for further information. </blockquote>

This was the main event supplier interface for SAX1; it has been replaced in SAX2 by org.xml.sax.XMLReader XMLReader, which includes Namespace support and sophisticated configurability and extensibility.

All SAX1 parsers must implement this basic interface: it allows applications to register handlers for different types of events and to initiate a parse from a URI, or a character stream.

All SAX1 parsers must also implement a zero-argument constructor (though other constructors are also allowed).

SAX1 parsers are reusable but not re-entrant: the application may reuse a parser object (possibly with a different input source) once the first parse has completed successfully, but it may not invoke the parse() methods recursively within a parse.

This member is deprecated. This interface has been replaced by the SAX2 org.xml.sax.XMLReader XMLReader interface, which includes Namespace support.

Added in SAX 1.0.

Java documentation for org.xml.sax.Parser.

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.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode

Returns the value of java.lang.System.identityHashCode() for the wrapped instance.

(Inherited from IJavaPeerable)
JniManagedPeerState

State of the managed peer.

(Inherited from IJavaPeerable)
JniPeerMembers

Member access and invocation support.

(Inherited from IJavaPeerable)
PeerReference

Returns a JniObjectReference of the wrapped Java object instance.

(Inherited from IJavaPeerable)

Methods

Disposed()

Called when the instance has been disposed.

(Inherited from IJavaPeerable)
DisposeUnlessReferenced()

If there are no outstanding references to this instance, then calls Dispose(); otherwise, does nothing.

(Inherited from IJavaPeerable)
Finalized()

Called when the instance has been finalized.

(Inherited from IJavaPeerable)
Parse(InputSource)
Obsolete.

Parse an XML document.

Parse(String)
Obsolete.

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

SetDocumentHandler(IDocumentHandler)
Obsolete.

Allow an application to register a document event handler.

SetDTDHandler(IDTDHandler)
Obsolete.

Allow an application to register a DTD event handler.

SetEntityResolver(IEntityResolver)
Obsolete.

Allow an application to register a custom entity resolver.

SetErrorHandler(IErrorHandler)
Obsolete.

Allow an application to register an error event handler.

SetJniIdentityHashCode(Int32)

Set the value returned by JniIdentityHashCode.

(Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetLocale(Locale)
Obsolete.

Allow an application to request a locale for errors and warnings.

SetPeerReference(JniObjectReference)

Set the value returned by PeerReference.

(Inherited from IJavaPeerable)
UnregisterFromRuntime()

Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.

(Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)
ParseAsync(IParser, InputSource)
ParseAsync(IParser, String)

Applies to