亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xmlpullparser.java

?? < JavaME核心技術最佳實踐>>的全部源代碼
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
     * as empty string.     * If namespaces are not enabled, an empty String ("") is always returned.     * The current event must be START_TAG or END_TAG; otherwise,     * null is returned.     */    String getNamespace ();    /**     * For START_TAG or END_TAG events, the (local) name of the current     * element is returned when namespaces are enabled. When namespace     * processing is disabled, the raw name is returned.     * For ENTITY_REF events, the entity name is returned.     * If the current event is not START_TAG, END_TAG, or ENTITY_REF,     * null is returned.     * <p><b>Please note:</b> To reconstruct the raw element name     *  when namespaces are enabled and the prefix is not null,     * you will need to  add the prefix and a colon to localName..     *     */    String getName();    /**     * Returns the prefix of the current element.     * If the element is in the default namespace (has no prefix),     * null is returned.     * If namespaces are not enabled, or the current event     * is not  START_TAG or END_TAG, null is returned.     */    String getPrefix();    /**     * Returns true if the current event is START_TAG and the tag     * is degenerated     * (e.g. &lt;foobar/&gt;).     * <p><b>NOTE:</b> if the parser is not on START_TAG, an exception     * will be thrown.     */    boolean isEmptyElementTag() throws XmlPullParserException;    // --------------------------------------------------------------------------    // START_TAG Attributes retrieval methods    /**     * Returns the number of attributes of the current start tag, or     * -1 if the current event type is not START_TAG     *     * @see #getAttributeNamespace     * @see #getAttributeName     * @see #getAttributePrefix     * @see #getAttributeValue     */    int getAttributeCount();    /**     * Returns the namespace URI of the attribute     * with the given index (starts from 0).     * Returns an empty string ("") if namespaces are not enabled     * or the attribute has no namespace.     * Throws an IndexOutOfBoundsException if the index is out of range     * or the current event type is not START_TAG.     *     * <p><strong>NOTE:</strong> if FEATURE_REPORT_NAMESPACE_ATTRIBUTES is set     * then namespace attributes (xmlns:ns='...') must be reported     * with namespace     * <a href="http://www.w3.org/2000/xmlns/">http://www.w3.org/2000/xmlns/</a>     * (visit this URL for description!).     * The default namespace attribute (xmlns="...") will be reported with empty namespace.     * <p><strong>NOTE:</strong>The xml prefix is bound as defined in     * <a href="http://www.w3.org/TR/REC-xml-names/#ns-using">Namespaces in XML</a>     * specification to "http://www.w3.org/XML/1998/namespace".     *     * @param zero based index of attribute     * @return attribute namespace,     *   empty string ("") is returned  if namesapces processing is not enabled or     *   namespaces processing is enabled but attribute has no namespace (it has no prefix).     */    String getAttributeNamespace (int index);    /**     * Returns the local name of the specified attribute     * if namespaces are enabled or just attribute name if namespaces are disabled.     * Throws an IndexOutOfBoundsException if the index is out of range     * or current event type is not START_TAG.     *     * @param zero based index of attribute     * @return attribute name (null is never returned)     */    String getAttributeName (int index);    /**     * Returns the prefix of the specified attribute     * Returns null if the element has no prefix.     * If namespaces are disabled it will always return null.     * Throws an IndexOutOfBoundsException if the index is out of range     * or current event type is not START_TAG.     *     * @param zero based index of attribute     * @return attribute prefix or null if namespaces processing is not enabled.     */    String getAttributePrefix(int index);    /**     * Returns the type of the specified attribute     * If parser is non-validating it MUST return CDATA.     *     * @param zero based index of attribute     * @return attribute type (null is never returned)     */    String getAttributeType(int index);    /**     * Returns if the specified attribute was not in input was declared in XML.     * If parser is non-validating it MUST always return false.     * This information is part of XML infoset:     *     * @param zero based index of attribute     * @return false if attribute was in input     */    boolean isAttributeDefault(int index);    /**     * Returns the given attributes value.     * Throws an IndexOutOfBoundsException if the index is out of range     * or current event type is not START_TAG.     *     * <p><strong>NOTE:</strong> attribute value must be normalized     * (including entity replacement text if PROCESS_DOCDECL is false) as described in     * <a href="http://www.w3.org/TR/REC-xml#AVNormalize">XML 1.0 section     * 3.3.3 Attribute-Value Normalization</a>     *     * @see #defineEntityReplacementText     *     * @param zero based index of attribute     * @return value of attribute (null is never returned)     */    String getAttributeValue(int index);    /**     * Returns the attributes value identified by namespace URI and namespace localName.     * If namespaces are disabled namespace must be null.     * If current event type is not START_TAG then IndexOutOfBoundsException will be thrown.     *     * <p><strong>NOTE:</strong> attribute value must be normalized     * (including entity replacement text if PROCESS_DOCDECL is false) as described in     * <a href="http://www.w3.org/TR/REC-xml#AVNormalize">XML 1.0 section     * 3.3.3 Attribute-Value Normalization</a>     *     * @see #defineEntityReplacementText     *     * @param namespace Namespace of the attribute if namespaces are enabled otherwise must be null     * @param name If namespaces enabled local name of attribute otherwise just attribute name     * @return value of attribute or null if attribute with given name does not exist     */    String getAttributeValue(String namespace,                                    String name);    // --------------------------------------------------------------------------    // actual parsing methods    /**     * Returns the type of the current event (START_TAG, END_TAG, TEXT, etc.)     *     * @see #next()     * @see #nextToken()     */    int getEventType()        throws XmlPullParserException;    /**     * Get next parsing event - element content wil be coalesced and only one     * TEXT event must be returned for whole element content     * (comments and processing instructions will be ignored and emtity references     * must be expanded or exception mus be thrown if entity reerence can not be exapnded).     * If element content is empty (content is "") then no TEXT event will be reported.     *     * <p><b>NOTE:</b> empty element (such as &lt;tag/>) will be reported     *  with  two separate events: START_TAG, END_TAG - it must be so to preserve     *   parsing equivalency of empty element to &lt;tag>&lt;/tag>.     *  (see isEmptyElementTag ())     *     * @see #isEmptyElementTag     * @see #START_TAG     * @see #TEXT     * @see #END_TAG     * @see #END_DOCUMENT     */    int next()        throws XmlPullParserException, IOException;    /**     * This method works similarly to next() but will expose     * additional event types (COMMENT, CDSECT, DOCDECL, ENTITY_REF, PROCESSING_INSTRUCTION, or     * IGNORABLE_WHITESPACE) if they are available in input.     *     * <p>If special feature     * <a href="http://xmlpull.org/v1/doc/features.html#xml-roundtrip">FEATURE_XML_ROUNDTRIP</a>     * (identified by URI: http://xmlpull.org/v1/doc/features.html#xml-roundtrip)     * is enabled it is possible to do XML document round trip ie. reproduce     * exectly on output the XML input using getText():     * returned content is always unnormalized (exactly as in input).     * Otherwise returned content is end-of-line normalized as described     * <a href="http://www.w3.org/TR/REC-xml#sec-line-ends">XML 1.0 End-of-Line Handling</a>     * and. Also when this feature is enabled exact content of START_TAG, END_TAG,     * DOCDECL and PROCESSING_INSTRUCTION is available.     *     * <p>Here is the list of tokens that can be  returned from nextToken()     * and what getText() and getTextCharacters() returns:<dl>     * <dt>START_DOCUMENT<dd>null     * <dt>END_DOCUMENT<dd>null     * <dt>START_TAG<dd>null unless FEATURE_XML_ROUNDTRIP     *   enabled and then returns XML tag, ex: &lt;tag attr='val'>     * <dt>END_TAG<dd>null unless FEATURE_XML_ROUNDTRIP     *  id enabled and then returns XML tag, ex: &lt;/tag>     * <dt>TEXT<dd>return element content.     *  <br>Note: that element content may be delivered in multiple consecutive TEXT events.     * <dt>IGNORABLE_WHITESPACE<dd>return characters that are determined to be ignorable white     * space. If the FEATURE_XML_ROUNDTRIP is enabled all whitespace content outside root     * element will always reported as IGNORABLE_WHITESPACE otherise rteporting is optional.     *  <br>Note: that element content may be delevered in multiple consecutive IGNORABLE_WHITESPACE events.     * <dt>CDSECT<dd>     * return text <em>inside</em> CDATA     *  (ex. 'fo&lt;o' from &lt;!CDATA[fo&lt;o]]>)     * <dt>PROCESSING_INSTRUCTION<dd>     *  if FEATURE_XML_ROUNDTRIP is true     *  return exact PI content ex: 'pi foo' from &lt;?pi foo?>     *  otherwise it may be exact PI content or concatenation of PI target,     * space and data so for example for     *   &lt;?target    data?> string &quot;target data&quot; may     *       be returned if FEATURE_XML_ROUNDTRIP is false.     * <dt>COMMENT<dd>return comment content ex. 'foo bar' from &lt;!--foo bar-->     * <dt>ENTITY_REF<dd>getText() MUST return entity replacement text if PROCESS_DOCDECL is false     * otherwise getText() MAY return null,     * additionally getTextCharacters() MUST return entity name     * (for example 'entity_name' for &amp;entity_name;).     * <br><b>NOTE:</b> this is the only place where value returned from getText() and     *   getTextCharacters() <b>are different</b>     * <br><b>NOTE:</b> it is user responsibility to resolve entity reference     *    if PROCESS_DOCDECL is false and there is no entity replacement text set in     *    defineEntityReplacementText() method (getText() will be null)     * <br><b>NOTE:</b> character entities (ex. &amp;#32;) and standard entities such as     *  &amp;amp; &amp;lt; &amp;gt; &amp;quot; &amp;apos; are reported as well     *  and are <b>not</b> reported as TEXT tokens but as ENTITY_REF tokens!     *  This requirement is added to allow to do roundtrip of XML documents!     * <dt>DOCDECL<dd>     * if FEATURE_XML_ROUNDTRIP is true or PROCESS_DOCDECL is false     * then return what is inside of DOCDECL for example it returns:<pre>     * &quot; titlepage SYSTEM "http://www.foo.bar/dtds/typo.dtd"     * [&lt;!ENTITY % active.links "INCLUDE">]&quot;</pre>     * <p>for input document that contained:<pre>     * &lt;!DOCTYPE titlepage SYSTEM "http://www.foo.bar/dtds/typo.dtd"     * [&lt;!ENTITY % active.links "INCLUDE">]></pre>     * otherwise if FEATURE_XML_ROUNDTRIP is false and PROCESS_DOCDECL is true     *    then what is returned is undefined (it may be even null)     * </dd>     * </dl>     *     * <p><strong>NOTE:</strong> there is no gurantee that there will only one TEXT or     * IGNORABLE_WHITESPACE event from nextToken() as parser may chose to deliver element content in     * multiple tokens (dividing element content into chunks)     *     * <p><strong>NOTE:</strong> whether returned text of token is end-of-line normalized     *  is depending on FEATURE_XML_ROUNDTRIP.     *     * <p><strong>NOTE:</strong> XMLDecl (&lt;?xml ...?&gt;) is not reported but its content     * is available through optional properties (see class description above).     *     * @see #next     * @see #START_TAG     * @see #TEXT     * @see #END_TAG     * @see #END_DOCUMENT     * @see #COMMENT     * @see #DOCDECL     * @see #PROCESSING_INSTRUCTION     * @see #ENTITY_REF     * @see #IGNORABLE_WHITESPACE     */    int nextToken()        throws XmlPullParserException, IOException;    //-----------------------------------------------------------------------------    // utility methods to mak XML parsing easier ...    /**     * Test if the current event is of the given type and if the     * namespace and name do match. null will match any namespace     * and any name. If the test is not passed, an exception is     * thrown. The exception text indicates the parser position,     * the expected event and the current event that is not meeting the     * requirement.     *     * <p>Essentially it does this     * <pre>     *  if (type != getEventType()     *  || (namespace != null &amp;&amp;  !namespace.equals( getNamespace () ) )     *  || (name != null &amp;&amp;  !name.equals( getName() ) ) )     *     throw new XmlPullParserException( "expected "+ TYPES[ type ]+getPositionDescription());     * </pre>     */    void require(int type, String namespace, String name)        throws XmlPullParserException, IOException;    /**     * If current event is START_TAG then if next element is TEXT then element content is returned     * or if next event is END_TAG then empty string is returned, otherwise exception is thrown.     * After calling this function successfully parser will be positioned on END_TAG.     *     * <p>The motivation for this function is to allow to parse consistently both     * empty elements and elements that has non empty content, for example for input: <ol>     * <li>&lt;tag&gt;foo&lt;/tag&gt;     * <li>&lt;tag&gt;&lt;/tag&gt; (which is equivalent to &lt;tag/&gt;     * both input can be parsed with the same code:     * <pre>     *   p.nextTag()     *   p.requireEvent(p.START_TAG, "", "tag");     *   String content = p.nextText();     *   p.requireEvent(p.END_TAG, "", "tag");     * </pre>     * This function together with nextTag make it very easy to parse XML that has     * no mixed content.     *     *     * <p>Essentially it does this     * <pre>     *  if(getEventType() != START_TAG) {     *     throw new XmlPullParserException(     *       "parser must be on START_TAG to read next text", this, null);     *  }     *  int eventType = next();     *  if(eventType == TEXT) {     *     String result = getText();     *     eventType = next();     *     if(eventType != END_TAG) {     *       throw new XmlPullParserException(     *          "event TEXT it must be immediately followed by END_TAG", this, null);     *      }     *      return result;     *  } else if(eventType == END_TAG) {     *     return "";     *  } else {     *     throw new XmlPullParserException(     *       "parser must be on START_TAG or TEXT to read text", this, null);     *  }     * </pre>     */    String nextText() throws XmlPullParserException, IOException;    /**     * Call next() and return event if it is START_TAG or END_TAG     * otherwise throw an exception.     * It will skip whitespace TEXT before actual tag if any.     *     * <p>essentially it does this     * <pre>     *   int eventType = next();     *   if(eventType == TEXT &amp;&amp;  isWhitespace()) {   // skip whitespace     *      eventType = next();     *   }     *   if (eventType != START_TAG &amp;&amp;  eventType != END_TAG) {     *      throw new XmlPullParserException("expected start or end tag", this, null);     *   }     *   return eventType;     * </pre>     */    int nextTag() throws XmlPullParserException, IOException;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区欧美亚洲| 欧美日韩成人一区二区| 亚洲一区av在线| 久久蜜臀中文字幕| 欧美麻豆精品久久久久久| 丝袜美腿亚洲色图| 亚洲欧美视频一区| 久久你懂得1024| 欧美一区二区三区在| 欧洲人成人精品| 成人国产亚洲欧美成人综合网| 久久9热精品视频| 午夜电影一区二区三区| 亚洲卡通欧美制服中文| 欧美激情中文字幕| 精品国产a毛片| 日韩一区二区精品葵司在线| 欧美视频一区二区在线观看| 91小视频在线免费看| 成人精品亚洲人成在线| 国产一区二区精品久久99| 中文欧美字幕免费| 欧美绝品在线观看成人午夜影视| 97精品国产露脸对白| 成人亚洲精品久久久久软件| 久久国产精品免费| 毛片av一区二区| 久久精品国产亚洲一区二区三区| 日韩国产欧美在线视频| 亚洲成人久久影院| 亚洲成a人v欧美综合天堂下载 | 国产色综合一区| 精品久久久久香蕉网| 日韩欧美的一区二区| 欧美不卡123| 久久在线观看免费| 国产亚洲欧美日韩日本| 国产婷婷精品av在线| 国产欧美精品国产国产专区| 国产色综合久久| 国产欧美综合在线观看第十页| 久久毛片高清国产| 国产精品丝袜黑色高跟| 中文字幕在线不卡国产视频| 国产精品水嫩水嫩| 国产精品电影院| 中文字幕亚洲区| 亚洲精品乱码久久久久久日本蜜臀| 综合激情成人伊人| 一个色在线综合| 亚洲1区2区3区4区| 免费看精品久久片| 国产在线观看免费一区| 国产成+人+日韩+欧美+亚洲| 成人av网站在线| 在线观看欧美精品| 8v天堂国产在线一区二区| 精品成人佐山爱一区二区| 久久这里只精品最新地址| 国产精品久久毛片av大全日韩| 亚洲精品v日韩精品| 丝袜国产日韩另类美女| 精品系列免费在线观看| caoporen国产精品视频| 欧美日韩在线播放| 精品国产污网站| 综合久久国产九一剧情麻豆| 午夜精品一区二区三区三上悠亚| 国产自产视频一区二区三区| av在线播放成人| 欧美电影影音先锋| 中文字幕精品—区二区四季| 一区二区日韩电影| 九九精品一区二区| 99国产精品一区| 制服丝袜国产精品| 国产欧美一区二区精品性 | 国产成人av一区二区三区在线| 成人免费视频一区二区| 欧美三级中文字| 久久久久久99久久久精品网站| 亚洲精品久久嫩草网站秘色| 精品综合免费视频观看| 在线一区二区观看| 久久综合九色综合欧美就去吻| 一区二区久久久久久| 国产一区二区三区在线观看免费| 色偷偷88欧美精品久久久| 91精品国产免费| 亚洲免费在线看| 黄色日韩网站视频| 欧美三级电影在线看| 国产三级精品视频| 秋霞电影一区二区| 91在线观看高清| 久久综合九色综合久久久精品综合| 亚洲一区日韩精品中文字幕| 国产电影一区在线| 欧美一区二区国产| 一区二区三区在线免费| 懂色av一区二区夜夜嗨| 日韩网站在线看片你懂的| 夜夜嗨av一区二区三区四季av | 国产福利精品导航| 777色狠狠一区二区三区| 亚洲色图一区二区三区| 久久99精品国产麻豆婷婷| 欧美日韩卡一卡二| 日韩伦理电影网| 成人久久18免费网站麻豆| 精品精品欲导航| 奇米四色…亚洲| 欧美最猛性xxxxx直播| 亚洲欧美在线视频观看| 国产福利91精品一区二区三区| 日韩精品在线一区二区| 日本视频在线一区| 欧美日韩大陆一区二区| 亚洲一二三专区| 日本电影欧美片| 最新中文字幕一区二区三区| 成人午夜激情影院| 国产色产综合色产在线视频| 国产一区 二区| 欧美mv日韩mv国产| 麻豆久久久久久| 日韩一级免费一区| 麻豆精品在线播放| 欧美大片在线观看一区| 蜜臀av性久久久久蜜臀av麻豆 | 亚洲国产精品精华液ab| 国产精品一区二区三区99| 26uuu亚洲| 国产精品66部| 亚洲国产成人一区二区三区| 国v精品久久久网| 中文字幕亚洲精品在线观看| 91在线免费看| 玉足女爽爽91| 欧美午夜电影网| 日韩二区三区四区| 欧美大片日本大片免费观看| 精品一区二区三区久久| 久久综合国产精品| 国产69精品久久久久毛片| 国产精品精品国产色婷婷| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 日韩免费在线观看| 蜜臀av性久久久久蜜臀aⅴ流畅 | 精品国产精品一区二区夜夜嗨| 蜜桃久久久久久久| 精品国产欧美一区二区| 东方aⅴ免费观看久久av| 国产精品色在线| 在线观看日韩电影| 日本免费新一区视频| 久久欧美一区二区| eeuss鲁片一区二区三区在线看| 亚洲欧洲综合另类| 91 com成人网| 国产激情偷乱视频一区二区三区| 亚洲欧洲三级电影| 欧美日韩一本到| 免费xxxx性欧美18vr| 国产亚洲综合在线| 99久久综合色| 天堂av在线一区| 久久久久久免费| 91麻豆免费观看| 三级在线观看一区二区| 久久久久久久久伊人| 色综合久久精品| 精油按摩中文字幕久久| 亚洲欧美视频一区| 日韩免费高清视频| 99久久综合国产精品| 亚洲福中文字幕伊人影院| 欧美成人欧美edvon| 色婷婷一区二区| 麻豆精品精品国产自在97香蕉 | 国产自产2019最新不卡| 亚洲女女做受ⅹxx高潮| 日韩一区二区三免费高清| 99久久精品国产毛片| 欧美aaa在线| 樱花草国产18久久久久| 精品福利视频一区二区三区| 日本乱人伦aⅴ精品| 国产成人夜色高潮福利影视| 午夜电影一区二区| 国产精品入口麻豆原神| 欧美电视剧在线观看完整版| 日本道免费精品一区二区三区| 精久久久久久久久久久| 午夜精品一区在线观看| 日韩码欧中文字| 欧美激情一区二区三区蜜桃视频 | 欧美午夜一区二区三区 | 91亚洲精华国产精华精华液| 精品一区二区在线免费观看|