DefaultHandler2 Class

Definition

This class extends the SAX2 base handler class to support the SAX2 LexicalHandler, DeclHandler, and EntityResolver2 extensions.

[Android.Runtime.Register("org/xml/sax/ext/DefaultHandler2", DoNotGenerateAcw=true)]
public class DefaultHandler2 : Org.Xml.Sax.Helpers.DefaultHandler, IDisposable, Java.Interop.IJavaPeerable, Org.Xml.Sax.Ext.IDeclHandler, Org.Xml.Sax.Ext.IEntityResolver2, Org.Xml.Sax.Ext.ILexicalHandler
[<Android.Runtime.Register("org/xml/sax/ext/DefaultHandler2", DoNotGenerateAcw=true)>]
type DefaultHandler2 = class
    inherit DefaultHandler
    interface IDeclHandler
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface IEntityResolver2
    interface IEntityResolver
    interface ILexicalHandler
Inheritance
DefaultHandler2
Attributes
Implements

Remarks

This class extends the SAX2 base handler class to support the SAX2 LexicalHandler, DeclHandler, and EntityResolver2 extensions. Except for overriding the original SAX1 DefaultHandler#resolveEntity resolveEntity() method the added handler methods just return. Subclassers may override everything on a method-by-method basis.

<blockquote> <em>This module, both source code and documentation, is in the Public Domain, and comes with <strong>NO WARRANTY</strong>.</em> </blockquote>

<em>Note:</em> this class might yet learn that the <em>ContentHandler.setDocumentLocator()</em> call might be passed a Locator2 object, and that the <em>ContentHandler.startElement()</em> call might be passed a Attributes2 object.

Added in SAX 2.0 (extensions 1.1 alpha).

Java documentation for org.xml.sax.ext.DefaultHandler2.

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

DefaultHandler2()

Constructs a handler which ignores all parsing events.

DefaultHandler2(IntPtr, JniHandleOwnership)

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

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
PeerReference (Inherited from Object)
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

AttributeDecl(String, String, String, String, String)

Report an attribute type declaration.

Characters(Char[], Int32, Int32)

Receive notification of character data inside an element.

(Inherited from DefaultHandler)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Comment(Char[], Int32, Int32)

Report an XML comment anywhere in the document.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
ElementDecl(String, String)

Report an element type declaration.

EndCDATA()

Report the end of a CDATA section.

EndDocument()

Receive notification of the end of the document.

(Inherited from DefaultHandler)
EndDTD()

Report the end of DTD declarations.

EndElement(String, String, String)

Receive notification of the end of an element.

(Inherited from DefaultHandler)
EndEntity(String)

Report the end of an entity.

EndPrefixMapping(String)

Receive notification of the end of a Namespace mapping.

(Inherited from DefaultHandler)
Equals(Object)

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

(Inherited from Object)
Error(SAXParseException)

Receive notification of a recoverable parser error.

(Inherited from DefaultHandler)
ExternalEntityDecl(String, String, String)

Report a parsed external entity declaration.

FatalError(SAXParseException)

Report a fatal XML parsing error.

(Inherited from DefaultHandler)
GetExternalSubset(String, String)

Tells the parser that if no external subset has been declared in the document text, none should be used.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
IgnorableWhitespace(Char[], Int32, Int32)

Receive notification of ignorable whitespace in element content.

(Inherited from DefaultHandler)
InternalEntityDecl(String, String)

Report an internal entity declaration.

JavaFinalize()

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

(Inherited from Object)
NotationDecl(String, String, String)

Receive notification of a notation declaration.

(Inherited from DefaultHandler)
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)
ProcessingInstruction(String, String)

Receive notification of a processing instruction.

(Inherited from DefaultHandler)
ResolveEntity(String, String)

Resolve an external entity.

(Inherited from DefaultHandler)
ResolveEntity(String, String, String, String)

Tells the parser to resolve the systemId against the baseURI and read the entity text from that resulting absolute URI.

SetDocumentLocator(ILocator)

Receive a Locator object for document events.

(Inherited from DefaultHandler)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SkippedEntity(String)

Receive notification of a skipped entity.

(Inherited from DefaultHandler)
StartCDATA()

Report the start of a CDATA section.

StartDocument()

Receive notification of the beginning of the document.

(Inherited from DefaultHandler)
StartDTD(String, String, String)

Report the start of DTD declarations, if any.

StartElement(String, String, String, IAttributes)

Receive notification of the start of an element.

(Inherited from DefaultHandler)
StartEntity(String)

Report the beginning of some internal and external XML entities.

StartPrefixMapping(String, String)

Receive notification of the start of a Namespace mapping.

(Inherited from DefaultHandler)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnparsedEntityDecl(String, String, String, String)

Receive notification of an unparsed entity declaration.

(Inherited from DefaultHandler)
UnregisterFromRuntime() (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)

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, 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)
Warning(SAXParseException)

Receive notification of a parser warning.

(Inherited from DefaultHandler)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to