Freigeben über


IXmlPullParser.GetTextCharacters(Int32[]) Method

Definition

Returns the buffer that contains the text of the current event, as well as the start offset and length relevant for the current event.

[Android.Runtime.Register("getTextCharacters", "([I)[C", "GetGetTextCharacters_arrayIHandler:Org.XmlPull.V1.IXmlPullParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public char[]? GetTextCharacters (int[]? holderForStartAndLength);
[<Android.Runtime.Register("getTextCharacters", "([I)[C", "GetGetTextCharacters_arrayIHandler:Org.XmlPull.V1.IXmlPullParserInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetTextCharacters : int[] -> char[]

Parameters

holderForStartAndLength
Int32[]

Must hold an 2-element int array into which the start offset and length values will be written.

Returns

Char[]

char buffer that contains the text of the current event (null if the current event has no text associated).

Attributes

Remarks

Returns the buffer that contains the text of the current event, as well as the start offset and length relevant for the current event. See getText(), next() and nextToken() for description of possible returned values.

<strong>Please note:</strong> this buffer must not be modified and its content MAY change after a call to next() or nextToken(). This method will always return the same value as getText(), except for ENTITY_REF. In the case of ENTITY ref, getText() returns the replacement text and this method returns the actual input buffer containing the entity name. If getText() returns null, this method returns null as well and the values returned in the holder array MUST be -1 (both start and length).

Java documentation for org.xmlpull.v1.XmlPullParser.getTextCharacters(int[]).

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.

Applies to