Language

XmlReaderResourceParser Class

Definition

Provides an Android XML resource parser over a .NET XML reader.

public class XmlReaderResourceParser : Android.Runtime.XmlReaderPullParser, Android.Content.Res.IXmlResourceParser, IDisposable
type XmlReaderResourceParser = class
    inherit XmlReaderPullParser
    interface IXmlResourceParser
    interface IAttributeSet
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
    interface IXmlPullParser
Inheritance
XmlReaderResourceParser
Implements

Remarks

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
XmlReaderResourceParser(XmlReader)

Creates a resource parser over an XML reader.

Properties

Name Description
AttributeCount

Gets the underlying reader's attribute count.

(Inherited from XmlReaderPullParser)
Class

Returns the runtime class of this Object.

(Inherited from Object)
ClassAttribute

Return the value of the "class" attribute or null if there is not one.

ColumnNumber

Gets the current column from the reader's line information.

(Inherited from XmlReaderPullParser)
Depth

Gets the reader's depth after moving from an attribute to its element.

(Inherited from XmlReaderPullParser)
EventType

Gets a pull-parser event based on the reader's state and current node.

(Inherited from XmlReaderPullParser)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
IdAttribute

Return the value of the "id" attribute or null if there is not one.

InputEncoding

Gets the encoding name supplied when stream input was set.

(Inherited from XmlReaderPullParser)
IsEmptyElementTag

Checks the reader's empty-element state after moving from an attribute to its element.

(Inherited from XmlReaderPullParser)
IsWhitespace

Checks the reader's current node type for whitespace.

(Inherited from XmlReaderPullParser)
JniIdentityHashCode

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

(Inherited from Object)
JniManagedPeerState

Gets the state flags last assigned by the runtime.

(Inherited from JavaObject)
JniPeerMembers

Gets the JNI metadata used to invoke members of this Java peer.

(Inherited from Object)
LineNumber

Gets the current line from the reader's line information.

(Inherited from XmlReaderPullParser)
Name

Gets the reader's local name after moving from an attribute to its element.

(Inherited from XmlReaderPullParser)
Namespace

Gets the reader's namespace URI after moving from an attribute to its element.

(Inherited from XmlReaderPullParser)
PeerReference

Gets the JNI object reference for this Java peer.

(Inherited from Object)
PositionDescription

Describes the reader's current node and location after moving from an attribute to its element.

(Inherited from XmlReaderPullParser)
Prefix

Gets the reader's prefix after moving from an attribute to its element.

(Inherited from XmlReaderPullParser)
StyleAttribute

This operation is not supported by XmlReaderResourceParser.

Text

Gets the reader's value after moving from an attribute to its element.

(Inherited from XmlReaderPullParser)
ThresholdClass

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

(Inherited from Object)
ThresholdType

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

(Inherited from Object)

Methods

Name Description
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Close()

Close this parser.

Construct(JniObjectReference, JniObjectReferenceOptions)

Delegates construction of this peer to the runtime's value manager.

(Inherited from JavaObject)
DefineEntityReplacementText(String, String)

Always throws NotSupportedException. Entity replacement text is not supported.

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

Asks the value manager to dispose this peer unless its mapping retains this same managed instance.

(Inherited from JavaObject)
Equals(Object)

Tests whether another managed peer refers to the same Java object.

(Inherited from JavaObject)
Equals(Object)

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

(Inherited from Object)
GetAttributeBooleanValue(Int32, Boolean)

Return the boolean value of attribute at 'index'.

GetAttributeBooleanValue(String, String, Boolean)

Return the boolean value of 'attribute'.

GetAttributeFloatValue(Int32, Single)

Return the float value of attribute at 'index'.

GetAttributeFloatValue(String, String, Single)

Return the float value of 'attribute'.

GetAttributeIntValue(Int32, Int32)

Return the integer value of attribute at 'index'.

GetAttributeIntValue(String, String, Int32)

Return the integer value of 'attribute'.

GetAttributeListValue(Int32, String[], Int32)

This operation is not supported by XmlReaderResourceParser.

GetAttributeListValue(String, String, String[], Int32)

This operation is not supported by XmlReaderResourceParser.

GetAttributeName(Int32)

Moves the reader to the indexed attribute and gets its local name.

(Inherited from XmlReaderPullParser)
GetAttributeNameResource(Int32)

This operation is not supported by XmlReaderResourceParser.

GetAttributeNamespace(Int32)

Moves the reader to the indexed attribute and gets its namespace URI.

(Inherited from XmlReaderPullParser)
GetAttributePrefix(Int32)

Moves the reader to the indexed attribute and gets its prefix.

(Inherited from XmlReaderPullParser)
GetAttributeResourceValue(Int32, Int32)

This operation is not supported by XmlReaderResourceParser.

GetAttributeResourceValue(String, String, Int32)

This operation is not supported by XmlReaderResourceParser.

GetAttributeType(Int32)

Always throws NotSupportedException. Attribute types are not supported.

(Inherited from XmlReaderPullParser)
GetAttributeUnsignedIntValue(Int32, Int32)

Return the value of attribute at 'index' as an unsigned decimal integer.

GetAttributeUnsignedIntValue(String, String, Int32)

Return the value of 'attribute' as an unsigned decimal integer.

GetAttributeValue(Int32)

Gets the indexed attribute's value from the reader.

(Inherited from XmlReaderPullParser)
GetAttributeValue(String, String)

Gets an attribute value by local name and namespace URI.

(Inherited from XmlReaderPullParser)
GetFeature(String)

Reports the supported namespace features.

(Inherited from XmlReaderPullParser)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetIdAttributeResourceValue(Int32)

This operation is not supported by XmlReaderResourceParser.

GetNamespace(String)

Looks up a namespace prefix in the reader.

(Inherited from XmlReaderPullParser)
GetNamespaceCount(Int32)

Always throws NotSupportedException. Namespace counts are not supported.

(Inherited from XmlReaderPullParser)
GetNamespacePrefix(Int32)

Always throws NotSupportedException. Indexed namespace prefixes are not supported.

(Inherited from XmlReaderPullParser)
GetNamespaceUri(Int32)

Always throws NotSupportedException. Indexed namespace URIs are not supported.

(Inherited from XmlReaderPullParser)
GetProperty(String)

Always throws NotSupportedException. Parser properties are not supported.

(Inherited from XmlReaderPullParser)
GetTextCharacters(Int32[])

Always throws NotSupportedException. This method does not expose a character buffer.

(Inherited from XmlReaderPullParser)
IsAttributeDefault(Int32)

Moves the reader to the indexed attribute and checks whether it is a default attribute.

(Inherited from XmlReaderPullParser)
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)
Next()

Returns the next start tag, end tag, text, or end-of-document event.

(Inherited from XmlReaderPullParser)
NextTag()

Gets the next tag event, skipping a whitespace text event. Throws if the resulting event is not a tag.

(Inherited from XmlReaderPullParser)
NextText()

Gets text after a start tag and requires an end tag immediately after the text.

(Inherited from XmlReaderPullParser)
NextToken()

Gets the next pull-parser event, including an end-tag event for an empty element.

(Inherited from XmlReaderPullParser)
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)
Require(XmlPullParserNode, String, String)

Checks that the current event type, namespace URI, and name equal the supplied values. Throws if any value differs.

(Inherited from XmlReaderPullParser)
SetFeature(String, Boolean)

Accepts enabled namespace processing or namespace attribute reporting; rejects other settings.

(Inherited from XmlReaderPullParser)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetInput(Reader)

Always throws NotSupportedException. Java readers are not supported as input.

(Inherited from XmlReaderPullParser)
SetInput(Stream, String)

Creates an XML reader for the stream and encoding, then reads from it once.

(Inherited from XmlReaderPullParser)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions)

Stores a reference value in the control block without creating a JNI reference copy.

(Inherited from JavaObject)
SetProperty(String, Object)

Always throws NotSupportedException. Parser properties cannot be set.

(Inherited from XmlReaderPullParser)
ToArray<T>()

Creates a managed array from this Java array wrapper.

(Inherited from Object)
ToLocalJniHandle(XmlReader)

Obtains a local JNI reference for the XML resource parser associated with an XML reader.

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()

Marks this peer as disposed and calls Dispose with disposing set to true.

(Inherited from JavaObject)
IJavaPeerable.Finalized()

Marks this peer as disposed and calls Dispose with disposing set to false.

(Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock

Gets the native control-block pointer used by this peer.

(Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32)

Stores the identity hash code supplied by the runtime.

(Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates)

Replaces the stored managed peer state flags.

(Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference)

Updates the peer reference and releases a disposed peer's control block when the reference is invalid.

(Inherited from JavaObject)
IJavaPeerable.UnregisterFromRuntime()

Unregisters this peer from the runtime.

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)

Reuses a compatible managed peer or obtains a wrapper of the requested type.

NextAsync(IXmlPullParser)

Runs Next() on the thread pool.

NextTagAsync(IXmlPullParser)

Runs NextTag() on the thread pool.

NextTextAsync(IXmlPullParser)

Runs NextText() on the thread pool.

NextTokenAsync(IXmlPullParser)

Runs NextToken() on the thread pool.

TryJavaCast<TResult>(IJavaPeerable, TResult)

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

Applies to