PageRenderTime 56ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/Generated/v4.1/Org.Xmlpull.V1.cs

https://gitlab.com/Pfhoenix/api
C# | 737 lines | 197 code | 41 blank | 499 comment | 0 complexity | 1f9f5e79d1bc6d916e7bff09d8f8dc59 MD5 | raw file
  1. // Copyright (C) 2014 dot42
  2. //
  3. // Original filename: Org.Xmlpull.V1.cs
  4. //
  5. // Licensed under the Apache License, Version 2.0 (the "License");
  6. // you may not use this file except in compliance with the License.
  7. // You may obtain a copy of the License at
  8. //
  9. // http://www.apache.org/licenses/LICENSE-2.0
  10. //
  11. // Unless required by applicable law or agreed to in writing, software
  12. // distributed under the License is distributed on an "AS IS" BASIS,
  13. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. // See the License for the specific language governing permissions and
  15. // limitations under the License.
  16. #pragma warning disable 1717
  17. namespace Org.Xmlpull.V1
  18. {
  19. /// <summary>
  20. /// <para>This class is used to create implementations of XML Pull Parser defined in XMPULL V1 API. The name of actual factory class will be determined based on several parameters. It works similar to JAXP but tailored to work in J2ME environments (no access to system properties or file system) so name of parser class factory to use and its class used for loading (no class loader - on J2ME no access to context class loaders) must be passed explicitly. If no name of parser factory was passed (or is null) it will try to find name by searching in CLASSPATH for META-INF/services/org.xmlpull.v1.XmlPullParserFactory resource that should contain a comma separated list of class names of factories or parsers to try (in order from left to the right). If none found, it will throw an exception.</para><para><br></br><b>NOTE:</b>In J2SE or J2EE environments, you may want to use <code>newInstance(property, classLoaderCtx)</code> where first argument is <code>System.getProperty(XmlPullParserFactory.PROPERTY_NAME)</code> and second is <code>Thread.getContextClassLoader().getClass()</code> .</para><para><para>XmlPullParser</para><para> </para><simplesectsep></simplesectsep><para>Stefan Haustein </para></para>
  21. /// </summary>
  22. /// <java-name>
  23. /// org/xmlpull/v1/XmlPullParserFactory
  24. /// </java-name>
  25. [Dot42.DexImport("org/xmlpull/v1/XmlPullParserFactory", AccessFlags = 33)]
  26. public partial class XmlPullParserFactory
  27. /* scope: __dot42__ */
  28. {
  29. /// <summary>
  30. /// <para>Name of the system or midlet property that should be used for a system property containing a comma separated list of factory or parser class names (value: org.xmlpull.v1.XmlPullParserFactory). </para>
  31. /// </summary>
  32. /// <java-name>
  33. /// PROPERTY_NAME
  34. /// </java-name>
  35. [Dot42.DexImport("PROPERTY_NAME", "Ljava/lang/String;", AccessFlags = 25)]
  36. public const string PROPERTY_NAME = "org.xmlpull.v1.XmlPullParserFactory";
  37. /// <java-name>
  38. /// parserClasses
  39. /// </java-name>
  40. [Dot42.DexImport("parserClasses", "Ljava/util/ArrayList;", AccessFlags = 4)]
  41. protected internal global::Java.Util.ArrayList<object> ParserClasses;
  42. /// <java-name>
  43. /// classNamesLocation
  44. /// </java-name>
  45. [Dot42.DexImport("classNamesLocation", "Ljava/lang/String;", AccessFlags = 4)]
  46. protected internal string ClassNamesLocation;
  47. /// <java-name>
  48. /// serializerClasses
  49. /// </java-name>
  50. [Dot42.DexImport("serializerClasses", "Ljava/util/ArrayList;", AccessFlags = 4)]
  51. protected internal global::Java.Util.ArrayList<object> SerializerClasses;
  52. /// <java-name>
  53. /// features
  54. /// </java-name>
  55. [Dot42.DexImport("features", "Ljava/util/HashMap;", AccessFlags = 4)]
  56. protected internal global::Java.Util.HashMap<object, object> Features;
  57. /// <summary>
  58. /// <para>Protected constructor to be called by factory implementations. </para>
  59. /// </summary>
  60. [Dot42.DexImport("<init>", "()V", AccessFlags = 4)]
  61. protected internal XmlPullParserFactory() /* MethodBuilder.Create */
  62. {
  63. }
  64. /// <summary>
  65. /// <para>Set the features to be set when XML Pull Parser is created by this factory. </para><para><b>NOTE:</b> factory features are not used for XML Serializer.</para><para></para>
  66. /// </summary>
  67. /// <java-name>
  68. /// setFeature
  69. /// </java-name>
  70. [Dot42.DexImport("setFeature", "(Ljava/lang/String;Z)V", AccessFlags = 1)]
  71. public virtual void SetFeature(string name, bool state) /* MethodBuilder.Create */
  72. {
  73. }
  74. /// <summary>
  75. /// <para>Return the current value of the feature with given name. </para><para><b>NOTE:</b> factory features are not used for XML Serializer.</para><para></para>
  76. /// </summary>
  77. /// <returns>
  78. /// <para>The value of named feature. Unknown features are &lt;string&gt;always returned as false </para>
  79. /// </returns>
  80. /// <java-name>
  81. /// getFeature
  82. /// </java-name>
  83. [Dot42.DexImport("getFeature", "(Ljava/lang/String;)Z", AccessFlags = 1)]
  84. public virtual bool GetFeature(string name) /* MethodBuilder.Create */
  85. {
  86. return default(bool);
  87. }
  88. /// <summary>
  89. /// <para>Specifies that the parser produced by this factory will provide support for XML namespaces. By default the value of this is set to false.</para><para></para>
  90. /// </summary>
  91. /// <java-name>
  92. /// setNamespaceAware
  93. /// </java-name>
  94. [Dot42.DexImport("setNamespaceAware", "(Z)V", AccessFlags = 1)]
  95. public virtual void SetNamespaceAware(bool awareness) /* MethodBuilder.Create */
  96. {
  97. }
  98. /// <summary>
  99. /// <para>Indicates whether or not the factory is configured to produce parsers which are namespace aware (it simply set feature XmlPullParser.FEATURE_PROCESS_NAMESPACES to true or false).</para><para></para>
  100. /// </summary>
  101. /// <returns>
  102. /// <para>true if the factory is configured to produce parsers which are namespace aware; false otherwise. </para>
  103. /// </returns>
  104. /// <java-name>
  105. /// isNamespaceAware
  106. /// </java-name>
  107. [Dot42.DexImport("isNamespaceAware", "()Z", AccessFlags = 1)]
  108. public virtual bool IsNamespaceAware() /* MethodBuilder.Create */
  109. {
  110. return default(bool);
  111. }
  112. /// <summary>
  113. /// <para>Specifies that the parser produced by this factory will be validating (it simply set feature XmlPullParser.FEATURE_VALIDATION to true or false).</para><para>By default the value of this is set to false.</para><para></para>
  114. /// </summary>
  115. /// <java-name>
  116. /// setValidating
  117. /// </java-name>
  118. [Dot42.DexImport("setValidating", "(Z)V", AccessFlags = 1)]
  119. public virtual void SetValidating(bool validating) /* MethodBuilder.Create */
  120. {
  121. }
  122. /// <summary>
  123. /// <para>Indicates whether or not the factory is configured to produce parsers which validate the XML content during parse.</para><para></para>
  124. /// </summary>
  125. /// <returns>
  126. /// <para>true if the factory is configured to produce parsers which validate the XML content during parse; false otherwise. </para>
  127. /// </returns>
  128. /// <java-name>
  129. /// isValidating
  130. /// </java-name>
  131. [Dot42.DexImport("isValidating", "()Z", AccessFlags = 1)]
  132. public virtual bool IsValidating() /* MethodBuilder.Create */
  133. {
  134. return default(bool);
  135. }
  136. /// <summary>
  137. /// <para>Creates a new instance of a XML Pull Parser using the currently configured factory features.</para><para></para>
  138. /// </summary>
  139. /// <returns>
  140. /// <para>A new instance of a XML Pull Parser. </para>
  141. /// </returns>
  142. /// <java-name>
  143. /// newPullParser
  144. /// </java-name>
  145. [Dot42.DexImport("newPullParser", "()Lorg/xmlpull/v1/XmlPullParser;", AccessFlags = 1)]
  146. public virtual global::Org.Xmlpull.V1.IXmlPullParser NewPullParser() /* MethodBuilder.Create */
  147. {
  148. return default(global::Org.Xmlpull.V1.IXmlPullParser);
  149. }
  150. /// <summary>
  151. /// <para>Creates a new instance of a XML Serializer.</para><para><b>NOTE:</b> factory features are not used for XML Serializer.</para><para></para>
  152. /// </summary>
  153. /// <returns>
  154. /// <para>A new instance of a XML Serializer. </para>
  155. /// </returns>
  156. /// <java-name>
  157. /// newSerializer
  158. /// </java-name>
  159. [Dot42.DexImport("newSerializer", "()Lorg/xmlpull/v1/XmlSerializer;", AccessFlags = 1)]
  160. public virtual global::Org.Xmlpull.V1.IXmlSerializer NewSerializer() /* MethodBuilder.Create */
  161. {
  162. return default(global::Org.Xmlpull.V1.IXmlSerializer);
  163. }
  164. /// <summary>
  165. /// <para>Create a new instance of a PullParserFactory that can be used to create XML pull parsers (see class description for more details).</para><para></para>
  166. /// </summary>
  167. /// <returns>
  168. /// <para>a new instance of a PullParserFactory, as returned by newInstance (null, null); </para>
  169. /// </returns>
  170. /// <java-name>
  171. /// newInstance
  172. /// </java-name>
  173. [Dot42.DexImport("newInstance", "()Lorg/xmlpull/v1/XmlPullParserFactory;", AccessFlags = 9)]
  174. public static global::Org.Xmlpull.V1.XmlPullParserFactory NewInstance() /* MethodBuilder.Create */
  175. {
  176. return default(global::Org.Xmlpull.V1.XmlPullParserFactory);
  177. }
  178. /// <java-name>
  179. /// newInstance
  180. /// </java-name>
  181. [Dot42.DexImport("newInstance", "(Ljava/lang/String;Ljava/lang/Class;)Lorg/xmlpull/v1/XmlPullParserFactory;", AccessFlags = 9)]
  182. public static global::Org.Xmlpull.V1.XmlPullParserFactory NewInstance(string classNames, global::System.Type context) /* MethodBuilder.Create */
  183. {
  184. return default(global::Org.Xmlpull.V1.XmlPullParserFactory);
  185. }
  186. }
  187. /// <summary>
  188. /// <para>This exception is thrown to signal XML Pull Parser related faults.</para><para><para> </para></para>
  189. /// </summary>
  190. /// <java-name>
  191. /// org/xmlpull/v1/XmlPullParserException
  192. /// </java-name>
  193. [Dot42.DexImport("org/xmlpull/v1/XmlPullParserException", AccessFlags = 33)]
  194. public partial class XmlPullParserException : global::System.Exception
  195. /* scope: __dot42__ */
  196. {
  197. /// <java-name>
  198. /// detail
  199. /// </java-name>
  200. [Dot42.DexImport("detail", "Ljava/lang/Throwable;", AccessFlags = 4)]
  201. protected internal global::System.Exception Detail;
  202. /// <java-name>
  203. /// row
  204. /// </java-name>
  205. [Dot42.DexImport("row", "I", AccessFlags = 4)]
  206. protected internal int Row;
  207. /// <java-name>
  208. /// column
  209. /// </java-name>
  210. [Dot42.DexImport("column", "I", AccessFlags = 4)]
  211. protected internal int Column;
  212. [Dot42.DexImport("<init>", "(Ljava/lang/String;)V", AccessFlags = 1)]
  213. public XmlPullParserException(string s) /* MethodBuilder.Create */
  214. {
  215. }
  216. [Dot42.DexImport("<init>", "(Ljava/lang/String;Lorg/xmlpull/v1/XmlPullParser;Ljava/lang/Throwable;)V", AccessFlags = 1)]
  217. public XmlPullParserException(string msg, global::Org.Xmlpull.V1.IXmlPullParser parser, global::System.Exception chain) /* MethodBuilder.Create */
  218. {
  219. }
  220. /// <java-name>
  221. /// getDetail
  222. /// </java-name>
  223. [Dot42.DexImport("getDetail", "()Ljava/lang/Throwable;", AccessFlags = 1)]
  224. public virtual global::System.Exception GetDetail() /* MethodBuilder.Create */
  225. {
  226. return default(global::System.Exception);
  227. }
  228. /// <java-name>
  229. /// getLineNumber
  230. /// </java-name>
  231. [Dot42.DexImport("getLineNumber", "()I", AccessFlags = 1)]
  232. public virtual int GetLineNumber() /* MethodBuilder.Create */
  233. {
  234. return default(int);
  235. }
  236. /// <java-name>
  237. /// getColumnNumber
  238. /// </java-name>
  239. [Dot42.DexImport("getColumnNumber", "()I", AccessFlags = 1)]
  240. public virtual int GetColumnNumber() /* MethodBuilder.Create */
  241. {
  242. return default(int);
  243. }
  244. /// <java-name>
  245. /// printStackTrace
  246. /// </java-name>
  247. [Dot42.DexImport("printStackTrace", "()V", AccessFlags = 1)]
  248. public override void PrintStackTrace() /* MethodBuilder.Create */
  249. {
  250. }
  251. [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)]
  252. internal XmlPullParserException() /* TypeBuilder.AddDefaultConstructor */
  253. {
  254. }
  255. /// <java-name>
  256. /// getLineNumber
  257. /// </java-name>
  258. public int LineNumber
  259. {
  260. [Dot42.DexImport("getLineNumber", "()I", AccessFlags = 1)]
  261. get{ return GetLineNumber(); }
  262. }
  263. /// <java-name>
  264. /// getColumnNumber
  265. /// </java-name>
  266. public int ColumnNumber
  267. {
  268. [Dot42.DexImport("getColumnNumber", "()I", AccessFlags = 1)]
  269. get{ return GetColumnNumber(); }
  270. }
  271. }
  272. /// <summary>
  273. /// <para>XML Pull Parser is an interface that defines parsing functionality provided in (visit this website to learn more about API and its implementations).</para><para>There are following different kinds of parser depending on which features are set:<ul><li><para><b>non-validating</b> parser as defined in XML 1.0 spec when FEATURE_PROCESS_DOCDECL is set to true </para></li><li><para><b>validating parser</b> as defined in XML 1.0 spec when FEATURE_VALIDATION is true (and that implies that FEATURE_PROCESS_DOCDECL is true) </para></li><li><para>when FEATURE_PROCESS_DOCDECL is false (this is default and if different value is required necessary must be changed before parsing is started) then parser behaves like XML 1.0 compliant non-validating parser under condition that <b>no DOCDECL is present</b> in XML documents (internal entites can still be defined with defineEntityReplacementText()). This mode of operation is intended <b>for operation in constrained environments</b> such as J2ME. </para></li></ul></para><para>There are two key methods: next() and nextToken(). While next() provides access to high level parsing events, nextToken() allows access to lower level tokens.</para><para>The current event state of the parser can be determined by calling the method. Initially, the parser is in the state.</para><para>The method advances the parser to the next event. The int value returned from next determines the current parser state and is identical to the value returned from following calls to getEventType ().</para><para>Th following event types are seen by next()</para><para>after first next() or nextToken() (or any other next*() method) is called user application can obtain XML version, standalone and encoding from XML declaration in following ways:<ul><li><para><b>version</b>: getProperty("") returns String ("1.0") or null if XMLDecl was not read or if property is not supported </para></li><li><para><b>standalone</b>: getProperty("") returns Boolean: null if there was no standalone declaration or if property is not supported otherwise returns Boolean(true) if standalone="yes" and Boolean(false) when standalone="no" </para></li><li><para><b>encoding</b>: obtained from getInputEncoding() null if stream had unknown encoding (not set in setInputStream) and it was not declared in XMLDecl </para></li></ul></para><para>A minimal example for using this API may look as follows: <pre>
  274. /// import java.io.IOException;
  275. /// import java.io.StringReader;
  276. ///
  277. /// import org.xmlpull.v1.XmlPullParser;
  278. /// import org.xmlpull.v1.;
  279. /// import org.xmlpull.v1.;
  280. ///
  281. /// public class SimpleXmlPullApp
  282. /// {
  283. ///
  284. /// public static void main (String args[])
  285. /// throws XmlPullParserException, IOException
  286. /// {
  287. /// XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
  288. /// factory.setNamespaceAware(true);
  289. /// XmlPullParser xpp = factory.newPullParser();
  290. ///
  291. /// xpp.( new StringReader ( "&amp;lt;foo&gt;Hello World!&amp;lt;/foo&gt;" ) );
  292. /// int eventType = xpp.getEventType();
  293. /// while (eventType != XmlPullParser.END_DOCUMENT) {
  294. /// if(eventType == XmlPullParser.START_DOCUMENT) {
  295. /// System.out.println("Start document");
  296. /// } else if(eventType == XmlPullParser.START_TAG) {
  297. /// System.out.println("Start tag "+xpp.);
  298. /// } else if(eventType == XmlPullParser.END_TAG) {
  299. /// System.out.println("End tag "+xpp.getName());
  300. /// } else if(eventType == XmlPullParser.TEXT) {
  301. /// System.out.println("Text "+xpp.);
  302. /// }
  303. /// eventType = xpp.next();
  304. /// }
  305. /// System.out.println("End document");
  306. /// }
  307. /// }
  308. /// </pre></para><para>The above example will generate the following output: <pre>
  309. /// Start document
  310. /// Start tag foo
  311. /// Text Hello World!
  312. /// End tag foo
  313. /// End document
  314. /// </pre></para><para>For more details on API usage, please refer to the quick Introduction available at </para><para><para>XmlPullParserFactory </para><simplesectsep></simplesectsep><para>defineEntityReplacementText </para><simplesectsep></simplesectsep><para>getName </para><simplesectsep></simplesectsep><para>getNamespace </para><simplesectsep></simplesectsep><para>getText </para><simplesectsep></simplesectsep><para>next </para><simplesectsep></simplesectsep><para>nextToken </para><simplesectsep></simplesectsep><para>setInput </para><simplesectsep></simplesectsep><para>FEATURE_PROCESS_DOCDECL </para><simplesectsep></simplesectsep><para>FEATURE_VALIDATION </para><simplesectsep></simplesectsep><para>START_DOCUMENT </para><simplesectsep></simplesectsep><para>START_TAG </para><simplesectsep></simplesectsep><para>TEXT </para><simplesectsep></simplesectsep><para>END_TAG </para><simplesectsep></simplesectsep><para>END_DOCUMENT</para><para> </para><simplesectsep></simplesectsep><para> </para></para>
  315. /// </summary>
  316. /// <java-name>
  317. /// org/xmlpull/v1/XmlPullParser
  318. /// </java-name>
  319. [Dot42.DexImport("org/xmlpull/v1/XmlPullParser", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
  320. public static partial class IXmlPullParserConstants
  321. /* scope: __dot42__ */
  322. {
  323. /// <summary>
  324. /// <para>This constant represents the default namespace (empty string "") </para>
  325. /// </summary>
  326. /// <java-name>
  327. /// NO_NAMESPACE
  328. /// </java-name>
  329. [Dot42.DexImport("NO_NAMESPACE", "Ljava/lang/String;", AccessFlags = 25)]
  330. public const string NO_NAMESPACE = "";
  331. /// <summary>
  332. /// <para>Signalize that parser is at the very beginning of the document and nothing was read yet. This event type can only be observed by calling getEvent() before the first call to next(), nextToken, or nextTag()).</para><para><para>next </para><simplesectsep></simplesectsep><para>nextToken </para></para>
  333. /// </summary>
  334. /// <java-name>
  335. /// START_DOCUMENT
  336. /// </java-name>
  337. [Dot42.DexImport("START_DOCUMENT", "I", AccessFlags = 25)]
  338. public const int START_DOCUMENT = 0;
  339. /// <summary>
  340. /// <para>Logical end of the xml document. Returned from getEventType, next() and nextToken() when the end of the input document has been reached. </para><para><b>NOTE:</b> subsequent calls to or may result in exception being thrown.</para><para><para>next </para><simplesectsep></simplesectsep><para>nextToken </para></para>
  341. /// </summary>
  342. /// <java-name>
  343. /// END_DOCUMENT
  344. /// </java-name>
  345. [Dot42.DexImport("END_DOCUMENT", "I", AccessFlags = 25)]
  346. public const int END_DOCUMENT = 1;
  347. /// <summary>
  348. /// <para>Returned from getEventType(), , when a start tag was read. The name of start tag is available from getName(), its namespace and prefix are available from getNamespace() and getPrefix() if . See getAttribute* methods to retrieve element attributes. See getNamespace* methods to retrieve newly declared namespaces.</para><para><para>next </para><simplesectsep></simplesectsep><para>nextToken </para><simplesectsep></simplesectsep><para>getName </para><simplesectsep></simplesectsep><para>getPrefix </para><simplesectsep></simplesectsep><para>getNamespace </para><simplesectsep></simplesectsep><para>getAttributeCount </para><simplesectsep></simplesectsep><para>getDepth </para><simplesectsep></simplesectsep><para>getNamespaceCount </para><simplesectsep></simplesectsep><para>getNamespace </para><simplesectsep></simplesectsep><para>FEATURE_PROCESS_NAMESPACES </para></para>
  349. /// </summary>
  350. /// <java-name>
  351. /// START_TAG
  352. /// </java-name>
  353. [Dot42.DexImport("START_TAG", "I", AccessFlags = 25)]
  354. public const int START_TAG = 2;
  355. /// <summary>
  356. /// <para>Returned from getEventType(), , or when an end tag was read. The name of start tag is available from getName(), its namespace and prefix are available from getNamespace() and getPrefix().</para><para><para>next </para><simplesectsep></simplesectsep><para>nextToken </para><simplesectsep></simplesectsep><para>getName </para><simplesectsep></simplesectsep><para>getPrefix </para><simplesectsep></simplesectsep><para>getNamespace </para><simplesectsep></simplesectsep><para>FEATURE_PROCESS_NAMESPACES </para></para>
  357. /// </summary>
  358. /// <java-name>
  359. /// END_TAG
  360. /// </java-name>
  361. [Dot42.DexImport("END_TAG", "I", AccessFlags = 25)]
  362. public const int END_TAG = 3;
  363. /// <summary>
  364. /// <para>Character data was read and will is available by calling getText(). </para><para><b>Please note:</b> will accumulate multiple events into one TEXT event, skipping IGNORABLE_WHITESPACE, PROCESSING_INSTRUCTION and COMMENT events, In contrast, will stop reading text when any other event is observed. Also, when the state was reached by calling next(), the text value will be normalized, whereas getText() will return unnormalized content in the case of nextToken(). This allows an exact roundtrip without changing line ends when examining low level events, whereas for high level applications the text is normalized appropriately.</para><para><para>next </para><simplesectsep></simplesectsep><para>nextToken </para><simplesectsep></simplesectsep><para>getText </para></para>
  365. /// </summary>
  366. /// <java-name>
  367. /// TEXT
  368. /// </java-name>
  369. [Dot42.DexImport("TEXT", "I", AccessFlags = 25)]
  370. public const int TEXT = 4;
  371. /// <summary>
  372. /// <para>A CDATA sections was just read; this token is available only from calls to . A call to next() will accumulate various text events into a single event of type TEXT. The text contained in the CDATA section is available by calling getText().</para><para><para>nextToken </para><simplesectsep></simplesectsep><para>getText </para></para>
  373. /// </summary>
  374. /// <java-name>
  375. /// CDSECT
  376. /// </java-name>
  377. [Dot42.DexImport("CDSECT", "I", AccessFlags = 25)]
  378. public const int CDSECT = 5;
  379. /// <summary>
  380. /// <para>An entity reference was just read; this token is available from only. The entity name is available by calling getName(). If available, the replacement text can be obtained by calling getText(); otherwise, the user is responsible for resolving the entity reference. This event type is never returned from next(); next() will accumulate the replacement text and other text events to a single TEXT event.</para><para><para>nextToken </para><simplesectsep></simplesectsep><para>getText </para></para>
  381. /// </summary>
  382. /// <java-name>
  383. /// ENTITY_REF
  384. /// </java-name>
  385. [Dot42.DexImport("ENTITY_REF", "I", AccessFlags = 25)]
  386. public const int ENTITY_REF = 6;
  387. /// <summary>
  388. /// <para>Ignorable whitespace was just read. This token is available only from ). For non-validating parsers, this event is only reported by nextToken() when outside the root element. Validating parsers may be able to detect ignorable whitespace at other locations. The ignorable whitespace string is available by calling getText()</para><para><b>NOTE:</b> this is different from calling the isWhitespace() method, since text content may be whitespace but not ignorable.</para><para>Ignorable whitespace is skipped by next() automatically; this event type is never returned from next().</para><para><para>nextToken </para><simplesectsep></simplesectsep><para>getText </para></para>
  389. /// </summary>
  390. /// <java-name>
  391. /// IGNORABLE_WHITESPACE
  392. /// </java-name>
  393. [Dot42.DexImport("IGNORABLE_WHITESPACE", "I", AccessFlags = 25)]
  394. public const int IGNORABLE_WHITESPACE = 7;
  395. /// <summary>
  396. /// <para>An XML processing instruction declaration was just read. This event type is available only via . getText() will return text that is inside the processing instruction. Calls to next() will skip processing instructions automatically. <para>nextToken </para><simplesectsep></simplesectsep><para>getText </para></para>
  397. /// </summary>
  398. /// <java-name>
  399. /// PROCESSING_INSTRUCTION
  400. /// </java-name>
  401. [Dot42.DexImport("PROCESSING_INSTRUCTION", "I", AccessFlags = 25)]
  402. public const int PROCESSING_INSTRUCTION = 8;
  403. /// <summary>
  404. /// <para>An XML comment was just read. This event type is this token is available via only; calls to next() will skip comments automatically. The content of the comment can be accessed using the getText() method.</para><para><para>nextToken </para><simplesectsep></simplesectsep><para>getText </para></para>
  405. /// </summary>
  406. /// <java-name>
  407. /// COMMENT
  408. /// </java-name>
  409. [Dot42.DexImport("COMMENT", "I", AccessFlags = 25)]
  410. public const int COMMENT = 9;
  411. /// <summary>
  412. /// <para>An XML document type declaration was just read. This token is available from only. The unparsed text inside the doctype is available via the getText() method.</para><para><para>nextToken </para><simplesectsep></simplesectsep><para>getText </para></para>
  413. /// </summary>
  414. /// <java-name>
  415. /// DOCDECL
  416. /// </java-name>
  417. [Dot42.DexImport("DOCDECL", "I", AccessFlags = 25)]
  418. public const int DOCDECL = 10;
  419. /// <summary>
  420. /// <para>This array can be used to convert the event type integer constants such as START_TAG or TEXT to to a string. For example, the value of TYPES[START_TAG] is the string "START_TAG".</para><para>This array is intended for diagnostic output only. Relying on the contents of the array may be dangerous since malicious applications may alter the array, although it is final, due to limitations of the Java language. </para>
  421. /// </summary>
  422. /// <java-name>
  423. /// TYPES
  424. /// </java-name>
  425. [Dot42.DexImport("TYPES", "[Ljava/lang/String;", AccessFlags = 25)]
  426. public static readonly string[] TYPES;
  427. /// <summary>
  428. /// <para>This feature determines whether the parser processes namespaces. As for all features, the default value is false. </para><para><b>NOTE:</b> The value can not be changed during parsing an must be set before parsing.</para><para><para>getFeature </para><simplesectsep></simplesectsep><para>setFeature </para></para>
  429. /// </summary>
  430. /// <java-name>
  431. /// FEATURE_PROCESS_NAMESPACES
  432. /// </java-name>
  433. [Dot42.DexImport("FEATURE_PROCESS_NAMESPACES", "Ljava/lang/String;", AccessFlags = 25)]
  434. public const string FEATURE_PROCESS_NAMESPACES = "http://xmlpull.org/v1/doc/features.html#process-namespaces";
  435. /// <summary>
  436. /// <para>This feature determines whether namespace attributes are exposed via the attribute access methods. Like all features, the default value is false. This feature cannot be changed during parsing.</para><para><para>getFeature </para><simplesectsep></simplesectsep><para>setFeature </para></para>
  437. /// </summary>
  438. /// <java-name>
  439. /// FEATURE_REPORT_NAMESPACE_ATTRIBUTES
  440. /// </java-name>
  441. [Dot42.DexImport("FEATURE_REPORT_NAMESPACE_ATTRIBUTES", "Ljava/lang/String;", AccessFlags = 25)]
  442. public const string FEATURE_REPORT_NAMESPACE_ATTRIBUTES = "http://xmlpull.org/v1/doc/features.html#report-namespace-prefixes";
  443. /// <summary>
  444. /// <para>This feature determines whether the document declaration is processed. If set to false, the DOCDECL event type is reported by nextToken() and ignored by next().</para><para>If this feature is activated, then the document declaration must be processed by the parser.</para><para><b>Please note:</b> If the document type declaration was ignored, entity references may cause exceptions later in the parsing process. The default value of this feature is false. It cannot be changed during parsing.</para><para><para>getFeature </para><simplesectsep></simplesectsep><para>setFeature </para></para>
  445. /// </summary>
  446. /// <java-name>
  447. /// FEATURE_PROCESS_DOCDECL
  448. /// </java-name>
  449. [Dot42.DexImport("FEATURE_PROCESS_DOCDECL", "Ljava/lang/String;", AccessFlags = 25)]
  450. public const string FEATURE_PROCESS_DOCDECL = "http://xmlpull.org/v1/doc/features.html#process-docdecl";
  451. /// <summary>
  452. /// <para>If this feature is activated, all validation errors as defined in the XML 1.0 specification are reported. This implies that FEATURE_PROCESS_DOCDECL is true and both, the internal and external document type declaration will be processed. </para><para><b>Please Note:</b> This feature can not be changed during parsing. The default value is false.</para><para><para>getFeature </para><simplesectsep></simplesectsep><para>setFeature </para></para>
  453. /// </summary>
  454. /// <java-name>
  455. /// FEATURE_VALIDATION
  456. /// </java-name>
  457. [Dot42.DexImport("FEATURE_VALIDATION", "Ljava/lang/String;", AccessFlags = 25)]
  458. public const string FEATURE_VALIDATION = "http://xmlpull.org/v1/doc/features.html#validation";
  459. }
  460. /// <summary>
  461. /// <para>XML Pull Parser is an interface that defines parsing functionality provided in (visit this website to learn more about API and its implementations).</para><para>There are following different kinds of parser depending on which features are set:<ul><li><para><b>non-validating</b> parser as defined in XML 1.0 spec when FEATURE_PROCESS_DOCDECL is set to true </para></li><li><para><b>validating parser</b> as defined in XML 1.0 spec when FEATURE_VALIDATION is true (and that implies that FEATURE_PROCESS_DOCDECL is true) </para></li><li><para>when FEATURE_PROCESS_DOCDECL is false (this is default and if different value is required necessary must be changed before parsing is started) then parser behaves like XML 1.0 compliant non-validating parser under condition that <b>no DOCDECL is present</b> in XML documents (internal entites can still be defined with defineEntityReplacementText()). This mode of operation is intended <b>for operation in constrained environments</b> such as J2ME. </para></li></ul></para><para>There are two key methods: next() and nextToken(). While next() provides access to high level parsing events, nextToken() allows access to lower level tokens.</para><para>The current event state of the parser can be determined by calling the method. Initially, the parser is in the state.</para><para>The method advances the parser to the next event. The int value returned from next determines the current parser state and is identical to the value returned from following calls to getEventType ().</para><para>Th following event types are seen by next()</para><para>after first next() or nextToken() (or any other next*() method) is called user application can obtain XML version, standalone and encoding from XML declaration in following ways:<ul><li><para><b>version</b>: getProperty("") returns String ("1.0") or null if XMLDecl was not read or if property is not supported </para></li><li><para><b>standalone</b>: getProperty("") returns Boolean: null if there was no standalone declaration or if property is not supported otherwise returns Boolean(true) if standalone="yes" and Boolean(false) when standalone="no" </para></li><li><para><b>encoding</b>: obtained from getInputEncoding() null if stream had unknown encoding (not set in setInputStream) and it was not declared in XMLDecl </para></li></ul></para><para>A minimal example for using this API may look as follows: <pre>
  462. /// import java.io.IOException;
  463. /// import java.io.StringReader;
  464. ///
  465. /// import org.xmlpull.v1.XmlPullParser;
  466. /// import org.xmlpull.v1.;
  467. /// import org.xmlpull.v1.;
  468. ///
  469. /// public class SimpleXmlPullApp
  470. /// {
  471. ///
  472. /// public static void main (String args[])
  473. /// throws XmlPullParserException, IOException
  474. /// {
  475. /// XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
  476. /// factory.setNamespaceAware(true);
  477. /// XmlPullParser xpp = factory.newPullParser();
  478. ///
  479. /// xpp.( new StringReader ( "&amp;lt;foo&gt;Hello World!&amp;lt;/foo&gt;" ) );
  480. /// int eventType = xpp.getEventType();
  481. /// while (eventType != XmlPullParser.END_DOCUMENT) {
  482. /// if(eventType == XmlPullParser.START_DOCUMENT) {
  483. /// System.out.println("Start document");
  484. /// } else if(eventType == XmlPullParser.START_TAG) {
  485. /// System.out.println("Start tag "+xpp.);
  486. /// } else if(eventType == XmlPullParser.END_TAG) {
  487. /// System.out.println("End tag "+xpp.getName());
  488. /// } else if(eventType == XmlPullParser.TEXT) {
  489. /// System.out.println("Text "+xpp.);
  490. /// }
  491. /// eventType = xpp.next();
  492. /// }
  493. /// System.out.println("End document");
  494. /// }
  495. /// }
  496. /// </pre></para><para>The above example will generate the following output: <pre>
  497. /// Start document
  498. /// Start tag foo
  499. /// Text Hello World!
  500. /// End tag foo
  501. /// End document
  502. /// </pre></para><para>For more details on API usage, please refer to the quick Introduction available at </para><para><para>XmlPullParserFactory </para><simplesectsep></simplesectsep><para>defineEntityReplacementText </para><simplesectsep></simplesectsep><para>getName </para><simplesectsep></simplesectsep><para>getNamespace </para><simplesectsep></simplesectsep><para>getText </para><simplesectsep></simplesectsep><para>next </para><simplesectsep></simplesectsep><para>nextToken </para><simplesectsep></simplesectsep><para>setInput </para><simplesectsep></simplesectsep><para>FEATURE_PROCESS_DOCDECL </para><simplesectsep></simplesectsep><para>FEATURE_VALIDATION </para><simplesectsep></simplesectsep><para>START_DOCUMENT </para><simplesectsep></simplesectsep><para>START_TAG </para><simplesectsep></simplesectsep><para>TEXT </para><simplesectsep></simplesectsep><para>END_TAG </para><simplesectsep></simplesectsep><para>END_DOCUMENT</para><para> </para><simplesectsep></simplesectsep><para> </para></para>
  503. /// </summary>
  504. /// <java-name>
  505. /// org/xmlpull/v1/XmlPullParser
  506. /// </java-name>
  507. [Dot42.DexImport("org/xmlpull/v1/XmlPullParser", AccessFlags = 1537)]
  508. public partial interface IXmlPullParser
  509. /* scope: __dot42__ */
  510. {
  511. /// <summary>
  512. /// <para>Use this call to change the general behaviour of the parser, such as namespace processing or doctype declaration handling. This method must be called before the first call to next or nextToken. Otherwise, an exception is thrown. </para><para>Example: call setFeature(FEATURE_PROCESS_NAMESPACES, true) in order to switch on namespace processing. The initial settings correspond to the properties requested from the XML Pull Parser factory. If none were requested, all features are deactivated by default.</para><para></para>
  513. /// </summary>
  514. /// <java-name>
  515. /// setFeature
  516. /// </java-name>
  517. [Dot42.DexImport("setFeature", "(Ljava/lang/String;Z)V", AccessFlags = 1025)]
  518. void SetFeature(string name, bool state) /* MethodBuilder.Create */ ;
  519. /// <summary>
  520. /// <para>Returns the current value of the given feature. </para><para><b>Please note:</b> unknown features are <b>always</b> returned as false.</para><para></para>
  521. /// </summary>
  522. /// <returns>
  523. /// <para>The value of the feature. </para>
  524. /// </returns>
  525. /// <java-name>
  526. /// getFeature
  527. /// </java-name>
  528. [Dot42.DexImport("getFeature", "(Ljava/lang/String;)Z", AccessFlags = 1025)]
  529. bool GetFeature(string name) /* MethodBuilder.Create */ ;
  530. /// <summary>
  531. /// <para>Set the value of a property.</para><para>The property name is any fully-qualified URI.</para><para></para>
  532. /// </summary>
  533. /// <java-name>
  534. /// setProperty
  535. /// </java-name>
  536. [Dot42.DexImport("setProperty", "(Ljava/lang/String;Ljava/lang/Object;)V", AccessFlags = 1025)]
  537. void SetProperty(string name, object value) /* MethodBuilder.Create */ ;
  538. /// <summary>
  539. /// <para>Look up the value of a property.</para><para>The property name is any fully-qualified URI. </para><para><b>NOTE:</b> unknown properties are <b>always</b> returned as null.</para><para></para>
  540. /// </summary>
  541. /// <returns>
  542. /// <para>The value of named property. </para>
  543. /// </returns>
  544. /// <java-name>
  545. /// getProperty
  546. /// </java-name>
  547. [Dot42.DexImport("getProperty", "(Ljava/lang/String;)Ljava/lang/Object;", AccessFlags = 1025)]
  548. object GetProperty(string name) /* MethodBuilder.Create */ ;
  549. /// <summary>
  550. /// <para>Set the input source for parser to the given reader and resets the parser. The event type is set to the initial value START_DOCUMENT. Setting the reader to null will just stop parsing and reset parser state, allowing the parser to free internal resources such as parsing buffers. </para>
  551. /// </summary>
  552. /// <java-name>
  553. /// setInput
  554. /// </java-name>
  555. [Dot42.DexImport("setInput", "(Ljava/io/Reader;)V", AccessFlags = 1025)]
  556. void SetInput(global::Java.Io.Reader @in) /* MethodBuilder.Create */ ;
  557. /// <summary>
  558. /// <para>Sets the input stream the parser is going to process. This call resets the parser state and sets the event type to the initial value START_DOCUMENT.</para><para><b>NOTE:</b> If an input encoding string is passed, it MUST be used. Otherwise, if inputEncoding is null, the parser SHOULD try to determine input encoding following XML 1.0 specification (see below). If encoding detection is supported then following feature MUST be true amd otherwise it must be false</para><para></para>
  559. /// </summary>
  560. /// <java-name>
  561. /// setInput
  562. /// </java-name>
  563. [Dot42.DexImport("setInput", "(Ljava/io/InputStream;Ljava/lang/String;)V", AccessFlags = 1025)]
  564. void SetInput(global::Java.Io.InputStream inputStream, string inputEncoding) /* MethodBuilder.Create */ ;
  565. /// <summary>
  566. /// <para>Returns the input encoding if known, null otherwise. If setInput(InputStream, inputEncoding) was called with an inputEncoding value other than null, this value must be returned from this method. Otherwise, if inputEncoding is null and the parser supports the encoding detection feature (), it must return the detected encoding. If setInput(Reader) was called, null is returned. After first call to next if XML declaration was present this method will return encoding declared. </para>
  567. /// </summary>
  568. /// <java-name>
  569. /// getInputEncoding
  570. /// </java-name>
  571. [Dot42.DexImport("getInputEncoding", "()Ljava/lang/String;", AccessFlags = 1025)]
  572. string GetInputEncoding() /* MethodBuilder.Create */ ;
  573. /// <summary>
  574. /// <para>Set new value for entity replacement text as defined in . If FEATURE_PROCESS_DOCDECL or FEATURE_VALIDATION are set, calling this function will result in an exception when processing of DOCDECL is enabled, there is no need to the entity replacement text manually.</para><para>The motivation for this function is to allow very small implementations of XMLPULL that will work in J2ME environments. Though these implementations may not be able to process the document type declaration, they still can work with known DTDs by using this function.</para><para><b>Please notes:</b> The given value is used literally as replacement text and it corresponds to declaring entity in DTD that has all special characters escaped: left angle bracket is replaced with &amp;lt;, ampersand with &amp;amp; and so on.</para><para><b>Note:</b> The given value is the literal replacement text and must not contain any other entity reference (if it contains any entity reference there will be no further replacement).</para><para><b>Note:</b> The list of pre-defined entity names will always contain standard XML entities such as amp (&amp;amp;), lt (&amp;lt;), gt (&amp;gt;), quot (&amp;quot;), and apos (&amp;apos;). Those cannot be redefined by this method!</para><para><para>setInput </para><simplesectsep></simplesectsep><para>FEATURE_PROCESS_DOCDECL </para><simplesectsep></simplesectsep><para>FEATURE_VALIDATION </para></para>
  575. /// </summary>
  576. /// <java-name>
  577. /// defineEntityReplacementText
  578. /// </java-name>
  579. [Dot42.DexImport("defineEntityReplacementText", "(Ljava/lang/String;Ljava/lang/String;)V", AccessFlags = 1025)]
  580. void DefineEntityReplacementText(string entityName, string replacementText) /* MethodBuilder.Create */ ;
  581. /// <summary>
  582. /// <para>Returns the numbers of elements in the namespace stack for the given depth. If namespaces are not enabled, 0 is returned.</para><para><b>NOTE:</b> when parser is on END_TAG then it is allowed to call this function with getDepth()+1 argument to retrieve position of namespace prefixes and URIs that were declared on corresponding START_TAG. </para><para><b>NOTE:</b> to retrieve list of namespaces declared in current element:<pre>
  583. /// XmlPullParser pp = ...
  584. /// int nsStart = pp.getNamespaceCount(pp.getDepth()-1);
  585. /// int nsEnd = pp.getNamespaceCount(pp.getDepth());
  586. /// for (int i = nsStart; i &lt; nsEnd; i++) {
  587. /// String prefix = pp.getNamespacePrefix(i);
  588. /// String ns = pp.getNamespaceUri(i);
  589. /// // ...
  590. /// }
  591. /// </pre></para><para><para>getNamespacePrefix </para><simplesectsep></simplesectsep><para>getNamespaceUri </para><simplesectsep></simplesectsep><para>getNamespace() </para><simplesectsep></simplesectsep><para>getNamespace(String) </para></para>
  592. /// </summary>
  593. /// <java-name>
  594. /// getNamespaceCount
  595. /// </java-name>
  596. [Dot42.DexImport("getNamespaceCount", "(I)I", AccessFlags = 1025)]
  597. int GetNamespaceCount(int depth) /* MethodBuilder.Create */ ;
  598. /// <summary>
  599. /// <para>Returns the namespace prefix for the given position in the namespace stack. Default namespace declaration (xmlns='...') will have null as prefix. If the given index is out of range, an exception is thrown. </para><para><b>Please note:</b> when the parser is on an END_TAG, namespace prefixes that were declared in the corresponding START_TAG are still accessible although they are no longer in scope. </para>
  600. /// </summary>
  601. /// <java-name>
  602. /// getNamespacePrefix
  603. /// </java-name>
  604. [Dot42.DexImport("getNamespacePrefix", "(I)Ljava/lang/String;", AccessFlags = 1025)]
  605. string GetNamespacePrefix(int pos) /* MethodBuilder.Create */ ;
  606. /// <summary>
  607. /// <para>Returns the namespace URI for the given position in the namespace stack If the position is out of range, an exception is thrown. </para><para><b>NOTE:</b> when parser is on END_TAG then namespace prefixes that were declared in corresponding START_TAG are still accessible even though they are not in scope </para>
  608. /// </summary>
  609. /// <java-name>
  610. /// getNamespaceUri
  611. /// </java-name>
  612. [Dot42.DexImport("getNamespaceUri", "(I)Ljava/lang/String;", AccessFlags = 1025)]
  613. string GetNamespaceUri(int pos) /* MethodBuilder.Create */ ;
  614. /// <summary>
  615. /// <para>Returns the URI corresponding to the given prefix, depending on current state of the parser.</para><para>If the prefix was not declared in the current scope, null is returned. The default namespace is included in the namespace table and is available via getNamespace (null).</para><para>This method is a convenience method for</para><para><pre>
  616. /// for (int i = getNamespaceCount(getDepth ())-1; i &gt;= 0; i) {
  617. /// if (getNamespacePrefix(i).equals( prefix )) {
  618. /// return getNamespaceUri(i);
  619. /// }
  620. /// }
  621. /// return null;
  622. /// </pre></para><para><b>Please note:</b> parser implementations may provide more efficient lookup, e.g. using a Hashtable. The 'xml' prefix is bound to "http://www.w3.org/XML/1998/namespace", as defined in the specification. Analogous, the 'xmlns' prefix is resolved to </para><para><para>getNamespaceCount </para><simplesectsep></simplesectsep><para>getNamespacePrefix </para><simplesectsep></simplesectsep><para>getNamespaceUri </para></para>
  623. /// </summary>
  624. /// <java-name>
  625. /// getNamespace
  626. /// </java-name>
  627. [Dot42.DexImport("getNamespace", "(Ljava/lang/String;)Ljava/lang/String;", AccessFlags = 1025)]
  628. string GetNamespace(string prefix) /* MethodBuilder.Create */ ;
  629. /// <summary>
  630. /// <para>Returns the current depth of the element. Outside the root element, the depth is 0. The depth is incremented by 1 when a start tag is reached. The depth is decremented AFTER the end tag event was observed.</para><para><pre>
  631. /// &lt;! outside &gt; 0
  632. /// &lt;root&gt; 1
  633. /// sometext 1
  634. /// &lt;foobar&gt; 2
  635. /// &lt;/foobar&gt; 2
  636. /// &lt;/root&gt; 1
  637. /// &lt;! outside &gt; 0
  638. /// </pre> </para>
  639. /// </summary>
  640. /// <java-name>
  641. /// getDepth
  642. /// </java-name>
  643. [Dot42.DexImport("getDepth", "()I", AccessFlags = 1025)]
  644. int GetDepth() /* MethodBuilder.Create */ ;
  645. /// <summary>
  646. /// <para>Returns a short text describing the current parser state, including the position, a description of the current event and the data source if known. This method is especially useful to provide meaningful error messages and for debugging purposes. </para>
  647. /// </summary>
  648. /// <java-name>
  649. /// getPositionDescription
  650. /// </java-name>
  651. [Dot42.DexImport("getPositionDescription", "()Ljava/lang/String;", AccessFlags = 1025)]
  652. string GetPositionDescription() /* MethodBuilder.Create */ ;
  653. /// <summary>
  654. /// <para>Returns the current line number, starting from 1. When the parser does not know the current line number or can not determine it, -1 is returned (e.g. for WBXML).</para><para></para>
  655. /// </summary>
  656. /// <returns>
  657. /// <para>current line number or -1 if unknown. </para>
  658. /// </returns>
  659. /// <java-name>
  660. /// getLineNumber
  661. /// </java-name>
  662. [Dot42.DexImport("getLineNumber", "()I", AccessFlags = 1025)]
  663. int GetLineNumber() /* MethodBuilder.Create */ ;
  664. /// <summary>
  665. /// <para>Returns the current column number, starting from 0. When the parser does not know the current column number or can not determine it, -1 is returned (e.g. for WBXML).</para><para></para>
  666. /// </summary>
  667. /// <returns>
  668. /// <para>current column number or -1 if unknown. </para>
  669. /// </returns>
  670. /// <java-name>
  671. /// getColumnNumber
  672. /// </java-name>
  673. [Dot42.DexImport("getColumnNumber", "()I", AccessFlags = 1025)]
  674. int GetColumnNumber() /* MethodBuilder.Create */ ;
  675. /// <summary>
  676. /// <para>Checks whether the current TEXT event contains only whitespace characters. For IGNORABLE_WHITESPACE, this is always true. For TEXT and CDSECT, false is returned when the current event text contains at least one non-white space character. For any other event type an exception is thrown.</para><para><b>Please note:</b> non-validating parsers are not able to distinguish whitespace and ignorable whitespace, except from whitespace outside the root element. Ignorable whitespace is reported as separate event, which is exposed via nextToken only. </para>
  677. /// </summary>
  678. /// <java-name>
  679. /// isWhitespace
  680. /// </java-name>
  681. [Dot42.DexImport("isWhitespace", "()Z", AccessFlags = 1025)]
  682. bool IsWhitespace() /* MethodBuilder.Create */ ;
  683. /// <summary>
  684. /// <para>Returns the text content of the current event as String. The value returned depends on current event type, for example for TEXT event it is element content (this is typical case when next() is used).</para><para>See description of nextToken() for detailed description of possible returned values for different types of events.</para><para><b>NOTE:</b> in case of ENTITY_REF, this method returns the entity replacement text (or null if not available). This is the only case where getText() and getTextCharacters() return different values.</para><para><para>getEventType </para><simplesectsep></simplesectsep><para>next </para><simplesectsep></simplesectsep><para>nextToken </para></para>
  685. /// </summary>
  686. /// <java-name>
  687. /// getText
  688. /// </java-name>
  689. [Dot42.DexImport("getText", "()Ljava/lang/String;", AccessFlags = 1025)]
  690. string GetText() /* MethodBuilder.Create */ ;
  691. /// <summary>
  692. /// <para>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.</para><para><b>Please note:</b> 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).</para><para><para>getText </para><simplesectsep></simplesectsep><para>next </para><simplesectsep></simplesectsep><para>nextToken</para></para>
  693. /// </summary>
  694. /// <returns>
  695. /// <para>char buffer that contains the text of the current event (null if the current event has no text associated). </para>
  696. /