mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-08-29 18:23:25 +08:00
1852 lines
86 KiB
HTML
1852 lines
86 KiB
HTML
<div class="header">
|
||
<div class="subTitle">
|
||
compact2, compact3
|
||
</div>
|
||
<div class="subTitle">
|
||
javax.xml.stream.util
|
||
</div>
|
||
<h2 class="title" title="Class StreamReaderDelegate">Class StreamReaderDelegate</h2>
|
||
</div><div class="contentContainer">
|
||
<ul class="inheritance">
|
||
<li><a href="../../../../java/lang/Object.html" title="class in java.lang">java.lang.Object</a></li>
|
||
<li>
|
||
<ul class="inheritance">
|
||
<li>javax.xml.stream.util.StreamReaderDelegate</li>
|
||
</ul> </li>
|
||
</ul>
|
||
<div class="description">
|
||
<ul class="blockList">
|
||
<li class="blockList">
|
||
<dl>
|
||
<dt>
|
||
All Implemented Interfaces:
|
||
</dt>
|
||
<dd>
|
||
<span><a href="../../../../javax/xml/stream/XMLStreamConstants.html" title="javax.xml.stream中的接口">XMLStreamConstants</a> , <a href="../../../../javax/xml/stream/XMLStreamReader.html" title="javax.xml.stream中的接口">XMLStreamReader</a></span>
|
||
</dd>
|
||
</dl>
|
||
<hr/> <br/> <pre>public class <span class="typeNameLabel">StreamReaderDelegate</span>
|
||
extends <a href="../../../../java/lang/Object.html" title="class in java.lang">Object</a>
|
||
implements <a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></pre>
|
||
<div class="block">
|
||
<span>这是派生XMLStreamReader过滤器的基础类此类设计为位于XMLStreamReader和应用程序的XMLStreamReader之间。</span>
|
||
<span>默认情况下,每个方法都不会调用父接口上的相应方法。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="simpleTagLabel">从以下版本开始:</span>
|
||
</dt>
|
||
<dd>
|
||
1.6
|
||
</dd>
|
||
<dt>
|
||
<span class="simpleTagLabel">Version:</span>
|
||
</dt>
|
||
<dd>
|
||
1.0
|
||
</dd>
|
||
<dt>
|
||
<span class="seeLabel">另请参见:</span>
|
||
</dt>
|
||
<dd>
|
||
<span><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="javax.xml.stream中的接口"><code>XMLStreamReader</code></a> , <a href="../../../../javax/xml/stream/util/EventReaderDelegate.html" title="javax.xml.stream.util中的类"><code>EventReaderDelegate</code></a></span>
|
||
</dd>
|
||
</dl> </li>
|
||
</ul>
|
||
</div>
|
||
<div class="summary">
|
||
<ul class="blockList">
|
||
<li class="blockList">
|
||
<!-- =========== FIELD SUMMARY =========== -->
|
||
<ul class="blockList">
|
||
<li class="blockList"><a name="field.summary">
|
||
<!-- --> </a> <h3>Field Summary</h3>
|
||
<ul class="blockList">
|
||
<li class="blockList"><a name="fields.inherited.from.class.javax.xml.stream.XMLStreamConstants">
|
||
<!-- --> </a> <h3>Fields inherited from interface javax.xml.stream.<a href="../../../../javax/xml/stream/XMLStreamConstants.html" title="interface in javax.xml.stream">XMLStreamConstants</a></h3> <code><a href="../../../../javax/xml/stream/XMLStreamConstants.html#ATTRIBUTE">ATTRIBUTE</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#CDATA">CDATA</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#CHARACTERS">CHARACTERS</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#COMMENT">COMMENT</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#DTD">DTD</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#END_DOCUMENT">END_DOCUMENT</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#END_ELEMENT">END_ELEMENT</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#ENTITY_DECLARATION">ENTITY_DECLARATION</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#ENTITY_REFERENCE">ENTITY_REFERENCE</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#NAMESPACE">NAMESPACE</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#NOTATION_DECLARATION">NOTATION_DECLARATION</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#PROCESSING_INSTRUCTION">PROCESSING_INSTRUCTION</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#SPACE">SPACE</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#START_DOCUMENT">START_DOCUMENT</a>, <a href="../../../../javax/xml/stream/XMLStreamConstants.html#START_ELEMENT">START_ELEMENT</a></code></li>
|
||
</ul> </li>
|
||
</ul>
|
||
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
||
<ul class="blockList">
|
||
<li class="blockList"><a name="constructor.summary">
|
||
<!-- --> </a> <h3>构造方法摘要</h3>
|
||
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Constructor Summary table, listing constructors, and an explanation">
|
||
<caption>
|
||
<span>构造方法</span>
|
||
<span class="tabEnd"> </span>
|
||
</caption>
|
||
<tbody>
|
||
<tr>
|
||
<th class="colOne" scope="col">Constructor and Description</th>
|
||
</tr>
|
||
<tr class="altColor">
|
||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#StreamReaderDelegate--">StreamReaderDelegate</a></span>()</code>
|
||
<div class="block">
|
||
构造一个没有父进程的空过滤器。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor">
|
||
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#StreamReaderDelegate-javax.xml.stream.XMLStreamReader-">StreamReaderDelegate</a></span>(<a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a> reader)</code>
|
||
<div class="block">
|
||
使用指定的父构造一个过滤器。
|
||
</div> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table> </li>
|
||
</ul>
|
||
<!-- ========== METHOD SUMMARY =========== -->
|
||
<ul class="blockList">
|
||
<li class="blockList"><a name="method.summary">
|
||
<!-- --> </a> <h3>方法摘要</h3>
|
||
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
|
||
<caption>
|
||
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
|
||
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
|
||
<span class="tableTab" id="t4"><span><a href="javascript:show(8);">具体的方法</a></span><span class="tabEnd"> </span></span>
|
||
</caption>
|
||
<tbody>
|
||
<tr>
|
||
<th class="colFirst" scope="col">Modifier and Type</th>
|
||
<th class="colLast" scope="col">Method and Description</th>
|
||
</tr>
|
||
<tr class="altColor" id="i0">
|
||
<td class="colFirst"><code>void</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#close--">close</a></span>()</code>
|
||
<div class="block">
|
||
释放与此Reader相关联的任何资源。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i1">
|
||
<td class="colFirst"><code>int</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeCount--">getAttributeCount</a></span>()</code>
|
||
<div class="block">
|
||
返回此START_ELEMENT上的属性数量,此方法仅适用于START_ELEMENT或ATTRIBUTE。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i2">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeLocalName-int-">getAttributeLocalName</a></span>(int index)</code>
|
||
<div class="block">
|
||
返回提供的索引处的属性的localName
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i3">
|
||
<td class="colFirst"><code><a href="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeName-int-">getAttributeName</a></span>(int index)</code>
|
||
<div class="block">
|
||
返回提供的索引处的属性的qname
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i4">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeNamespace-int-">getAttributeNamespace</a></span>(int index)</code>
|
||
<div class="block">
|
||
返回在提供的索引处的属性的命名空间
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i5">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributePrefix-int-">getAttributePrefix</a></span>(int index)</code>
|
||
<div class="block">
|
||
在提供的索引处返回此属性的前缀
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i6">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeType-int-">getAttributeType</a></span>(int index)</code>
|
||
<div class="block">
|
||
返回提供的索引处的属性的XML类型
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i7">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeValue-int-">getAttributeValue</a></span>(int index)</code>
|
||
<div class="block">
|
||
返回索引处的属性值
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i8">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getAttributeValue-java.lang.String-java.lang.String-">getAttributeValue</a></span>(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> namespaceUri, <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> localName)</code>
|
||
<div class="block">
|
||
返回具有命名空间和localName的属性的归一化属性值如果namespaceURI为空,则不会检查命名空间是否相等
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i9">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getCharacterEncodingScheme--">getCharacterEncodingScheme</a></span>()</code>
|
||
<div class="block">
|
||
返回在xml声明中声明的字符编码如果没有声明,则返回null
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i10">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getElementText--">getElementText</a></span>()</code>
|
||
<div class="block">
|
||
读取纯文本元素的内容,如果这不是纯文本元素,则抛出异常。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i11">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getEncoding--">getEncoding</a></span>()</code>
|
||
<div class="block">
|
||
如果已知返回输入编码,如果未知则返回null。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i12">
|
||
<td class="colFirst"><code>int</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getEventType--">getEventType</a></span>()</code>
|
||
<div class="block">
|
||
返回指示光标指向的事件类型的整数代码。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i13">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getLocalName--">getLocalName</a></span>()</code>
|
||
<div class="block">
|
||
返回当前事件的(本地)名称。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i14">
|
||
<td class="colFirst"><code><a href="../../../../javax/xml/stream/Location.html" title="interface in javax.xml.stream">Location</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getLocation--">getLocation</a></span>()</code>
|
||
<div class="block">
|
||
返回处理器的当前位置。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i15">
|
||
<td class="colFirst"><code><a href="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getName--">getName</a></span>()</code>
|
||
<div class="block">
|
||
返回当前START_ELEMENT或END_ELEMENT活动的QName
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i16">
|
||
<td class="colFirst"><code><a href="../../../../javax/xml/namespace/NamespaceContext.html" title="interface in javax.xml.namespace">NamespaceContext</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceContext--">getNamespaceContext</a></span>()</code>
|
||
<div class="block">
|
||
返回当前位置的只读命名空间上下文。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i17">
|
||
<td class="colFirst"><code>int</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceCount--">getNamespaceCount</a></span>()</code>
|
||
<div class="block">
|
||
返回在此START_ELEMENT或END_ELEMENT上声明的命名空间数,此方法仅适用于START_ELEMENT,END_ELEMENT或NAMESPACE。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i18">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespacePrefix-int-">getNamespacePrefix</a></span>(int index)</code>
|
||
<div class="block">
|
||
返回在索引处声明的命名空间的前缀。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i19">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceURI--">getNamespaceURI</a></span>()</code>
|
||
<div class="block">
|
||
如果当前事件是START_ELEMENT或END_ELEMENT,则此方法返回前缀或缺省命名空间的URI。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i20">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceURI-int-">getNamespaceURI</a></span>(int index)</code>
|
||
<div class="block">
|
||
返回在索引处声明的命名空间的uri。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i21">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getNamespaceURI-java.lang.String-">getNamespaceURI</a></span>(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> prefix)</code>
|
||
<div class="block">
|
||
返回给定前缀的uri。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i22">
|
||
<td class="colFirst"><code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getParent--">getParent</a></span>()</code>
|
||
<div class="block">
|
||
获取此实例的父级。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i23">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getPIData--">getPIData</a></span>()</code>
|
||
<div class="block">
|
||
获取处理指令的数据部分
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i24">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getPITarget--">getPITarget</a></span>()</code>
|
||
<div class="block">
|
||
获取处理指令的目标
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i25">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getPrefix--">getPrefix</a></span>()</code>
|
||
<div class="block">
|
||
返回当前事件的前缀,如果事件没有前缀,则返回null
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i26">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/Object.html" title="class in java.lang">Object</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getProperty-java.lang.String-">getProperty</a></span>(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> name)</code>
|
||
<div class="block">
|
||
从底层实现获取特征/属性的值
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i27">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getText--">getText</a></span>()</code>
|
||
<div class="block">
|
||
以字符串形式返回解析事件的当前值,返回CHARACTERS事件的字符串值,返回COMMENT的值,ENTITY_REFERENCE的替换值,CDATA部分的字符串值,SPACE的字符串值事件或DTD的内部子集的String值。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i28">
|
||
<td class="colFirst"><code>char[]</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getTextCharacters--">getTextCharacters</a></span>()</code>
|
||
<div class="block">
|
||
返回一个包含此事件中的字符的数组。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i29">
|
||
<td class="colFirst"><code>int</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getTextCharacters-int-char:A-int-int-">getTextCharacters</a></span>(int sourceStart, char[] target, int targetStart, int length)</code>
|
||
<div class="block">
|
||
获取与CHARACTERS,SPACE或CDATA事件关联的文本。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i30">
|
||
<td class="colFirst"><code>int</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getTextLength--">getTextLength</a></span>()</code>
|
||
<div class="block">
|
||
返回文本字符数组中此Text事件的字符序列长度。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i31">
|
||
<td class="colFirst"><code>int</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getTextStart--">getTextStart</a></span>()</code>
|
||
<div class="block">
|
||
返回文本字符数组中存在第一个字符(该文本事件)的偏移量。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i32">
|
||
<td class="colFirst"><code><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#getVersion--">getVersion</a></span>()</code>
|
||
<div class="block">
|
||
获取在xml声明中声明的xml版本如果没有声明,则返回null
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i33">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#hasName--">hasName</a></span>()</code>
|
||
<div class="block">
|
||
如果当前事件有一个名称(是START_ELEMENT或END_ELEMENT)返回false则返回true
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i34">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#hasNext--">hasNext</a></span>()</code>
|
||
<div class="block">
|
||
如果有更多的解析事件,返回true,如果没有更多的事件,返回false。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i35">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#hasText--">hasText</a></span>()</code>
|
||
<div class="block">
|
||
如果当前事件有文本,则返回true,否则返回false以下事件具有文本:CHARACTERS,DTD,ENTITY_REFERENCE,COMMENT,SPACE
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i36">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#isAttributeSpecified-int-">isAttributeSpecified</a></span>(int index)</code>
|
||
<div class="block">
|
||
返回一个布尔值,表示此属性是否默认创建
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i37">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#isCharacters--">isCharacters</a></span>()</code>
|
||
<div class="block">
|
||
如果光标指向字符数据事件,则返回true
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i38">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#isEndElement--">isEndElement</a></span>()</code>
|
||
<div class="block">
|
||
如果光标指向结束标记(否则为false),则返回true
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i39">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#isStandalone--">isStandalone</a></span>()</code>
|
||
<div class="block">
|
||
从xml声明获取独立声明
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i40">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#isStartElement--">isStartElement</a></span>()</code>
|
||
<div class="block">
|
||
如果光标指向起始标记(否则为false),则返回true
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i41">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#isWhiteSpace--">isWhiteSpace</a></span>()</code>
|
||
<div class="block">
|
||
如果游标指向由所有空格组成的字符数据事件,则返回true
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i42">
|
||
<td class="colFirst"><code>int</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#next--">next</a></span>()</code>
|
||
<div class="block">
|
||
获取下一个解析事件 - 处理器可能会在单个块中返回所有连续的字符数据,也可能会将其拆分成多个块。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i43">
|
||
<td class="colFirst"><code>int</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#nextTag--">nextTag</a></span>()</code>
|
||
<div class="block">
|
||
跳过任何空白处(isWhiteSpace()返回true),COMMENT或PROCESSING_INSTRUCTION,直到达到START_ELEMENT或END_ELEMENT。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i44">
|
||
<td class="colFirst"><code>void</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#require-int-java.lang.String-java.lang.String-">require</a></span>(int type, <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> namespaceURI, <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> localName)</code>
|
||
<div class="block">
|
||
测试当前事件是否为给定类型,如果命名空间和名称与当前命名空间和当前事件的名称相匹配。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="rowColor" id="i45">
|
||
<td class="colFirst"><code>void</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#setParent-javax.xml.stream.XMLStreamReader-">setParent</a></span>(<a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a> reader)</code>
|
||
<div class="block">
|
||
设置此实例的父级。
|
||
</div> </td>
|
||
</tr>
|
||
<tr class="altColor" id="i46">
|
||
<td class="colFirst"><code>boolean</code></td>
|
||
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../javax/xml/stream/util/StreamReaderDelegate.html#standaloneSet--">standaloneSet</a></span>()</code>
|
||
<div class="block">
|
||
检查文档中是否设置了独立的
|
||
</div> </td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<ul class="blockList">
|
||
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
||
<!-- --> </a> <h3>Methods inherited from class java.lang.<a href="../../../../java/lang/Object.html" title="class in java.lang">Object</a></h3> <code><a href="../../../../java/lang/Object.html#clone--">clone</a>, <a href="../../../../java/lang/Object.html#equals-java.lang.Object-">equals</a>, <a href="../../../../java/lang/Object.html#finalize--">finalize</a>, <a href="../../../../java/lang/Object.html#getClass--">getClass</a>, <a href="../../../../java/lang/Object.html#hashCode--">hashCode</a>, <a href="../../../../java/lang/Object.html#notify--">notify</a>, <a href="../../../../java/lang/Object.html#notifyAll--">notifyAll</a>, <a href="../../../../java/lang/Object.html#toString--">toString</a>, <a href="../../../../java/lang/Object.html#wait--">wait</a>, <a href="../../../../java/lang/Object.html#wait-long-">wait</a>, <a href="../../../../java/lang/Object.html#wait-long-int-">wait</a></code></li>
|
||
</ul> </li>
|
||
</ul> </li>
|
||
</ul>
|
||
</div>
|
||
<div class="details">
|
||
<ul class="blockList">
|
||
<li class="blockList">
|
||
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
||
<ul class="blockList">
|
||
<li class="blockList"><a name="constructor.detail">
|
||
<!-- --> </a> <h3>构造方法详细信息</h3> <a name="StreamReaderDelegate--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>StreamReaderDelegate</h4> <pre>public StreamReaderDelegate()</pre>
|
||
<div class="block">
|
||
构造一个没有父进程的空过滤器。
|
||
</div> </li>
|
||
</ul> <a name="StreamReaderDelegate-javax.xml.stream.XMLStreamReader-">
|
||
<!-- --> </a>
|
||
<ul class="blockListLast">
|
||
<li class="blockList"> <h4>StreamReaderDelegate</h4> <pre>public StreamReaderDelegate(<a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a> reader)</pre>
|
||
<div class="block">
|
||
使用指定的父构造一个过滤器。
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>reader</code> - 父母
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> </li>
|
||
</ul>
|
||
<!-- ============ METHOD DETAIL ========== -->
|
||
<ul class="blockList">
|
||
<li class="blockList"><a name="method.detail">
|
||
<!-- --> </a> <h3>方法详细信息</h3> <a name="setParent-javax.xml.stream.XMLStreamReader-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>setParent</h4> <pre>public void setParent(<a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a> reader)</pre>
|
||
<div class="block">
|
||
设置此实例的父级。
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>reader</code> - 新的父母
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getParent--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getParent</h4> <pre>public <a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a> getParent()</pre>
|
||
<div class="block">
|
||
获取此实例的父级。
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
父或null(如果没有设置)
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="next--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>next</h4> <pre>public int next()
|
||
throws <a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#next--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>获取下一个解析事件 - 处理器可能会在单个块中返回所有连续的字符数据,也可能会将其拆分成多个块。</span>
|
||
<span>如果将属性javax.xml.stream.isCoalescing设置为true元素内容必须合并,并且必须为连续的元素内容或CDATA节返回一个CHARACTERS事件。</span>
|
||
<span>默认情况下,实体引用必须对应用程序进行扩展和报告。</span>
|
||
<span>如果无法扩展实体引用,将抛出异常。</span>
|
||
<span>如果元素内容为空(即内容为“”),则不会报告CHARACTERS事件。</span>
|
||
<p> <span>给出以下XML:</span> <br/> <span><foo> <! - description - >内容文本<![CDATA [<greeting> Hello </ greeting>]]>其他内容</ foo></span> <br/> <span>在foo上调用next()的行为是:</span> <br/> <span>1-评论(评论)</span> <br/> <span>2-然后字符部分(CHARACTERS)</span> <br/> <span>3然后CDATA部分(另一个字符)</span> <br/> <span>4 - 然后下一个字符部分(另一个CHARACTERS)</span> <br/> <span>5,然后END_ELEMENT</span> <br/></p>
|
||
<p> <span><b>注意:</b>空元素(例如<tag />)将报告两个单独的事件:START_ELEMENT,END_ELEMENT - 这将空元素的解析等同于<tag> </ tag>。</span> <span>如果在hasNext()返回false之后调用该方法,则会抛出IllegalStateException异常。</span> </p>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#next--">next</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
对应于当前解析事件的整数代码
|
||
</dd>
|
||
<dt>
|
||
<span class="throwsLabel">异常</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></code> - 如果处理基础XML源时出错
|
||
</dd>
|
||
<dt>
|
||
<span class="seeLabel">另请参见:</span>
|
||
</dt>
|
||
<dd>
|
||
<span><a href="../../../../javax/xml/stream/events/XMLEvent.html" title="javax.xml.stream.events中的接口"><code>XMLEvent</code></a></span>
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="nextTag--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>nextTag</h4> <pre>public int nextTag()
|
||
throws <a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#nextTag--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>跳过任何空白处(isWhiteSpace()返回true),COMMENT或PROCESSING_INSTRUCTION,直到达到START_ELEMENT或END_ELEMENT。</span>
|
||
<span>如果除了空白字符COMMENT,PROCESSING_INSTRUCTION,START_ELEMENT,END_ELEMENT之外,则会抛出异常。</span>
|
||
<span>当处理仅由空格分隔的元素内容时,应使用此方法。</span>
|
||
<br/>
|
||
<span>前提条件:无</span>
|
||
<br/>
|
||
<span>后置条件:当前事件为START_ELEMENT或END_ELEMENT,而游标可能已经移动了任何空格事件。</span>
|
||
<br/>
|
||
<span>本质上它执行以下操作(实现可以自由优化,但必须执行等效处理):</span>
|
||
<pre> <span>int eventType = next();
|
||
while((eventType == XMLStreamConstants.CHARACTERS && isWhiteSpace()) // skip whitespace
|
||
|| (eventType == XMLStreamConstants.CDATA && isWhiteSpace())
|
||
// skip whitespace
|
||
|| eventType == XMLStreamConstants.SPACE
|
||
|| eventType == XMLStreamConstants.PROCESSING_INSTRUCTION
|
||
|| eventType == XMLStreamConstants.COMMENT
|
||
) {
|
||
eventType = next();
|
||
}
|
||
if (eventType != XMLStreamConstants.START_ELEMENT && eventType != XMLStreamConstants.END_ELEMENT) {
|
||
throw new String XMLStreamException("expected start or end tag", getLocation());
|
||
}
|
||
return eventType;</span> </pre>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#nextTag--">nextTag</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
读取的元素的事件类型(START_ELEMENT或END_ELEMENT)
|
||
</dd>
|
||
<dt>
|
||
<span class="throwsLabel">异常</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></code> - 如果当前事件不是空格,PROCESSING_INSTRUCTION,START_ELEMENT或END_ELEMENT
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getElementText--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getElementText</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getElementText()
|
||
throws <a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getElementText--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>读取纯文本元素的内容,如果这不是纯文本元素,则抛出异常。</span>
|
||
<span>无论javax.xml.stream.is的结果如何,这个方法总是返回合并的内容。</span>
|
||
<br/>
|
||
<span>前提条件:当前事件为START_ELEMENT。</span>
|
||
<br/>
|
||
<span>后置条件:当前事件是相应的END_ELEMENT。</span>
|
||
<br/>
|
||
<span>该方法执行以下操作(实现可以自由优化,但必须执行等效处理):</span>
|
||
<pre> <span>if(getEventType() != XMLStreamConstants.START_ELEMENT) {
|
||
throw new XMLStreamException(
|
||
"parser must be on START_ELEMENT to read next text", getLocation());
|
||
}
|
||
int eventType = next();
|
||
StringBuffer content = new StringBuffer();
|
||
while(eventType != XMLStreamConstants.END_ELEMENT ) {
|
||
if(eventType == XMLStreamConstants.CHARACTERS
|
||
|| eventType == XMLStreamConstants.CDATA
|
||
|| eventType == XMLStreamConstants.SPACE
|
||
|| eventType == XMLStreamConstants.ENTITY_REFERENCE) {
|
||
buf.append(getText());
|
||
} else if(eventType == XMLStreamConstants.PROCESSING_INSTRUCTION
|
||
|| eventType == XMLStreamConstants.COMMENT) {
|
||
// skipping
|
||
} else if(eventType == XMLStreamConstants.END_DOCUMENT) {
|
||
throw new XMLStreamException(
|
||
"unexpected end of document when reading element text content", this);
|
||
} else if(eventType == XMLStreamConstants.START_ELEMENT) {
|
||
throw new XMLStreamException(
|
||
"element text content may not contain START_ELEMENT", getLocation());
|
||
} else {
|
||
throw new XMLStreamException(
|
||
"Unexpected event type "+eventType, getLocation());
|
||
}
|
||
eventType = next();
|
||
}
|
||
return buf.toString();</span> </pre>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getElementText--">getElementText</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="throwsLabel">异常</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></code> - 如果当前事件不是START_ELEMENT或遇到非文本元素
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="require-int-java.lang.String-java.lang.String-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>require</h4> <pre>public void require(int type,
|
||
<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> namespaceURI,
|
||
<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> localName)
|
||
throws <a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#require-int-java.lang.String-java.lang.String-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>测试当前事件是否为给定类型,如果命名空间和名称与当前命名空间和当前事件的名称相匹配。</span>
|
||
<span>如果namespaceURI为空,则不检查是否相等,如果localName为空,则不检查其是否相等。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#require-int-java.lang.String-java.lang.String-">require</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>type</code> - 事件类型
|
||
</dd>
|
||
<dd>
|
||
<code>namespaceURI</code> - 事件的uri可能为null
|
||
</dd>
|
||
<dd>
|
||
<code>localName</code> - 该事件的localName可能为null
|
||
</dd>
|
||
<dt>
|
||
<span class="throwsLabel">异常</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></code> - 如果所需值不匹配。
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="hasNext--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>hasNext</h4> <pre>public boolean hasNext()
|
||
throws <a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#hasNext--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>如果有更多的解析事件,返回true,如果没有更多的事件,返回false。</span>
|
||
<span>如果XMLStreamReader的当前状态为END_DOCUMENT,则此方法将返回false</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#hasNext--">hasNext</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
如果有更多事件,则为true,否则为false
|
||
</dd>
|
||
<dt>
|
||
<span class="throwsLabel">异常</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></code> - 如果检测到下一个状态存在致命错误
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="close--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>close</h4> <pre>public void close()
|
||
throws <a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#close--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>释放与此Reader相关联的任何资源。</span>
|
||
<span>此方法不会关闭底层输入源。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#close--">close</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="throwsLabel">异常</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></code> - 如果有错误释放相关资源
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getNamespaceURI-java.lang.String-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getNamespaceURI</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getNamespaceURI(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> prefix)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceURI-java.lang.String-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>返回给定前缀的uri。</span>
|
||
<span>返回的uri取决于处理器的当前状态。</span>
|
||
<p> <span><strong>注意:</strong> “xml”前缀的绑定方式与“http://www.w3.org/XML/1998/namespace”的<a href="http://www.w3.org/TR/REC-xml-names/#ns-using">Namespaces in XML</a>规范中定义。</span> </p>
|
||
<p> <span><strong>注意:</strong> 'xmlns'前缀必须解析为以下命名<a href="http://www.w3.org/2000/xmlns/">空间http://www.w3.org/2000/xmlns/</a></span> </p>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceURI-java.lang.String-">getNamespaceURI</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>prefix</code> - 查找的前缀可能不为空
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
绑定到给定前缀的uri,如果没有绑定则为null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getNamespaceContext--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getNamespaceContext</h4> <pre>public <a href="../../../../javax/xml/namespace/NamespaceContext.html" title="interface in javax.xml.namespace">NamespaceContext</a> getNamespaceContext()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceContext--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
<span>返回当前位置的只读命名空间上下文。</span>
|
||
<span>上下文是短暂的,只有在对next()的调用才能更改读取器的状态时才有效。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceContext--">getNamespaceContext</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
返回一个命名空间上下文
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="isStartElement--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>isStartElement</h4> <pre>public boolean isStartElement()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isStartElement--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
如果光标指向起始标记(否则为false),则返回true
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isStartElement--">isStartElement</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
如果光标指向起始标记,则为true,否则为false
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="isEndElement--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>isEndElement</h4> <pre>public boolean isEndElement()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isEndElement--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
如果光标指向结束标记(否则为false),则返回true
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isEndElement--">isEndElement</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
如果光标指向结束标记,则为true,否则为false
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="isCharacters--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>isCharacters</h4> <pre>public boolean isCharacters()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isCharacters--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
如果光标指向字符数据事件,则返回true
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isCharacters--">isCharacters</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
如果光标指向字符数据,则为true,否则为false
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="isWhiteSpace--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>isWhiteSpace</h4> <pre>public boolean isWhiteSpace()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">从接口复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isWhiteSpace--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
如果游标指向由所有空格组成的字符数据事件,则返回true
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isWhiteSpace--">isWhiteSpace</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
如果光标指向所有空格,则为true,否则为false
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getAttributeValue-java.lang.String-java.lang.String-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getAttributeValue</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getAttributeValue(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> namespaceUri,
|
||
<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> localName)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeValue-java.lang.String-java.lang.String-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回具有命名空间和localName的属性的归一化属性值如果namespaceURI为空,则不会检查命名空间是否相等
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeValue-java.lang.String-java.lang.String-">getAttributeValue</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>namespaceUri</code> - 属性的命名空间
|
||
</dd>
|
||
<dd>
|
||
<code>localName</code> -
|
||
<code>localName</code>的本地名称,不能为空
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
返回属性的值,如果没有找到则返回null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getAttributeCount--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getAttributeCount</h4> <pre>public int getAttributeCount()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeCount--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>返回此START_ELEMENT上的属性数量,此方法仅适用于START_ELEMENT或ATTRIBUTE。</span>
|
||
<span>此计数不包括命名空间定义。</span>
|
||
<span>属性指数为零。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeCount--">getAttributeCount</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
返回属性数
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getAttributeName-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getAttributeName</h4> <pre>public <a href="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</a> getAttributeName(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeName-int-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回提供的索引处的属性的qname
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeName-int-">getAttributeName</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> -
|
||
<code>index</code>的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
属性的QName
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getAttributePrefix-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getAttributePrefix</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getAttributePrefix(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributePrefix-int-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
在提供的索引处返回此属性的前缀
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributePrefix-int-">getAttributePrefix</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> -
|
||
<code>index</code>的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
属性的前缀
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getAttributeNamespace-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getAttributeNamespace</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getAttributeNamespace(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">描述从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeNamespace-int-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回在提供的索引处的属性的命名空间
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeNamespace-int-">getAttributeNamespace</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> -
|
||
<code>index</code>的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
命名空间URI(可以为空)
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getAttributeLocalName-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getAttributeLocalName</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getAttributeLocalName(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeLocalName-int-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回提供的索引处的属性的localName
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeLocalName-int-">getAttributeLocalName</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> -
|
||
<code>index</code>的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
该属性的localName
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getAttributeType-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getAttributeType</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getAttributeType(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">描述从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeType-int-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回提供的索引处的属性的XML类型
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeType-int-">getAttributeType</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> -
|
||
<code>index</code>的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
属性的XML类型
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getAttributeValue-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getAttributeValue</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getAttributeValue(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">描述从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeValue-int-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回索引处的属性值
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getAttributeValue-int-">getAttributeValue</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> -
|
||
<code>index</code>的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
属性值
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="isAttributeSpecified-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>isAttributeSpecified</h4> <pre>public boolean isAttributeSpecified(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isAttributeSpecified-int-">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回一个布尔值,表示此属性是否默认创建
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isAttributeSpecified-int-">isAttributeSpecified</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> -
|
||
<code>index</code>的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
如果这是默认属性,则为true
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getNamespaceCount--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getNamespaceCount</h4> <pre>public int getNamespaceCount()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceCount--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>返回在此START_ELEMENT或END_ELEMENT上声明的命名空间数,此方法仅适用于START_ELEMENT,END_ELEMENT或NAMESPACE。</span>
|
||
<span>在END_ELEMENT上,计数是将要超出范围的命名空间。</span>
|
||
<span>这相当于SAX回调对终端元素事件报告的信息。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceCount--">getNamespaceCount</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
返回此特定元素上的命名空间声明的数量
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getNamespacePrefix-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getNamespacePrefix</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getNamespacePrefix(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从接口: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespacePrefix-int-">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
<span>返回在索引处声明的命名空间的前缀。</span>
|
||
<span>如果这是默认命名空间声明,则返回null</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespacePrefix-int-">getNamespacePrefix</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> - 命名空间声明的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
返回命名空间前缀
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getNamespaceURI-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getNamespaceURI</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getNamespaceURI(int index)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceURI-int-">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
返回在索引处声明的命名空间的uri。
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceURI-int-">getNamespaceURI</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>index</code> - 命名空间声明的位置
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
返回命名空间uri
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getEventType--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getEventType</h4> <pre>public int getEventType()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getEventType--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回指示光标指向的事件类型的整数代码。
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getEventType--">getEventType</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getText--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getText</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getText()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">描述从接口: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getText--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
<span>以字符串形式返回解析事件的当前值,返回CHARACTERS事件的字符串值,返回COMMENT的值,ENTITY_REFERENCE的替换值,CDATA部分的字符串值,SPACE的字符串值事件或DTD的内部子集的String值。</span>
|
||
<span>如果ENTITY_REFERENCE已解决,任何字符数据将被报告为CHARACTERS事件。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getText--">getText</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
当前文本或null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getTextCharacters-int-char:A-int-int-">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getTextCharacters</h4> <pre>public int getTextCharacters(int sourceStart,
|
||
char[] target,
|
||
int targetStart,
|
||
int length)
|
||
throws <a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getTextCharacters-int-char:A-int-int-">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
<span>获取与CHARACTERS,SPACE或CDATA事件关联的文本。</span>
|
||
<span>启动“sourceStart”的文本将从“targetStart”开始复制到“target”中。</span>
|
||
<span>最多可以复制“长度”字符。</span>
|
||
<span>返回实际复制的字符数。</span>
|
||
<span>“sourceStart”参数必须大于或等于0且小于或等于与事件关联的字符数。</span>
|
||
<span>通常,一个请求文本从“sourceStart”开始为0.如果实际复制的字符数小于“length”,则不再有文本。</span>
|
||
<span>否则,需要进行后续调用,直到检索到所有文本。</span>
|
||
<span>例如: <code>int length = 1024; char[] myBuffer = new char[ length ]; for ( int sourceStart = 0 ; ; sourceStart += length ) { int nCopied = stream.getTextCharacters( sourceStart, myBuffer, 0, length ); if (nCopied < length) break; }</code>如果基础源中存在任何XML错误,则可能会抛出XMLStreamException。</span>
|
||
<span>“targetStart”参数必须大于或等于0且小于“target”的长度,Length必须大于0,“targetStart + length”必须小于或等于“target”的长度。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getTextCharacters-int-char:A-int-int-">getTextCharacters</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>sourceStart</code> - 要复制的源数组中的第一个字符的索引
|
||
</dd>
|
||
<dd>
|
||
<code>target</code> - 目标数组
|
||
</dd>
|
||
<dd>
|
||
<code>targetStart</code> - 目标数组中的起始偏移量
|
||
</dd>
|
||
<dd>
|
||
<code>length</code> - 要复制的字符数
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
实际复制的字符数
|
||
</dd>
|
||
<dt>
|
||
<span class="throwsLabel">异常</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamException.html" title="class in javax.xml.stream">XMLStreamException</a></code> - 如果底层XML源格式不正确
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getTextCharacters--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getTextCharacters</h4> <pre>public char[] getTextCharacters()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">从接口复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getTextCharacters--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>返回一个包含此事件中的字符的数组。</span>
|
||
<span>这个数组应该被视为只读和暂时的。</span>
|
||
<span>即,数组将包含文本字符,直到XMLStreamReader移动到下一个事件。</span>
|
||
<span>尝试在该时间之后保持字符阵列或修改数组的内容是违反该接口的合同。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getTextCharacters--">getTextCharacters</a></code>中的
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
当前文本或空数组
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getTextStart--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getTextStart</h4> <pre>public int getTextStart()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getTextStart--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
返回文本字符数组中存在第一个字符(该文本事件)的偏移量。
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getTextStart--">getTextStart</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getTextLength--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getTextLength</h4> <pre>public int getTextLength()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">描述从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getTextLength--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
返回文本字符数组中此Text事件的字符序列长度。
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getTextLength--">getTextLength</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getEncoding--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getEncoding</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getEncoding()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getEncoding--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
如果已知返回输入编码,如果未知则返回null。
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getEncoding--">getEncoding</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
该实例的编码或null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="hasText--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>hasText</h4> <pre>public boolean hasText()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#hasText--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
如果当前事件有文本,则返回true,否则返回false以下事件具有文本:CHARACTERS,DTD,ENTITY_REFERENCE,COMMENT,SPACE
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#hasText--">hasText</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getLocation--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getLocation</h4> <pre>public <a href="../../../../javax/xml/stream/Location.html" title="interface in javax.xml.stream">Location</a> getLocation()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getLocation--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
<span>返回处理器的当前位置。</span>
|
||
<span>如果位置未知,则处理器应返回Location的实现,该位置返回-1的位置,对于publicId和systemId为null。</span>
|
||
<span>位置信息仅在调用next()时有效。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getLocation--">getLocation</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getName--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getName</h4> <pre>public <a href="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</a> getName()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getName--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回当前START_ELEMENT或END_ELEMENT活动的QName
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getName--">getName</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
当前START_ELEMENT或END_ELEMENT活动的QName
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getLocalName--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getLocalName</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getLocalName()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getLocalName--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>返回当前事件的(本地)名称。</span>
|
||
<span>START_ELEMENT或END_ELEMENT返回当前元素的(本地)名称。</span>
|
||
<span>对于ENTITY_REFERENCE,它返回实体名称。</span>
|
||
<span>目前的活动必须是START_ELEMENT或END_ELEMENT,或ENTITY_REFERENCE</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getLocalName--">getLocalName</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
localName
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="hasName--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>hasName</h4> <pre>public boolean hasName()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#hasName--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
如果当前事件有一个名称(是START_ELEMENT或END_ELEMENT)返回false则返回true
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#hasName--">hasName</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getNamespaceURI--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getNamespaceURI</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getNamespaceURI()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceURI--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
<span>如果当前事件是START_ELEMENT或END_ELEMENT,则此方法返回前缀或缺省命名空间的URI。</span>
|
||
<span>如果事件没有前缀,则返回null。</span>
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getNamespaceURI--">getNamespaceURI</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
绑定到此元素前缀的URI,默认命名空间或null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getPrefix--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getPrefix</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getPrefix()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">描述从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getPrefix--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
返回当前事件的前缀,如果事件没有前缀,则返回null
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getPrefix--">getPrefix</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
前缀或null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getVersion--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getVersion</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getVersion()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getVersion--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
获取在xml声明中声明的xml版本如果没有声明,则返回null
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getVersion--">getVersion</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
XML版本或null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="isStandalone--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>isStandalone</h4> <pre>public boolean isStandalone()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isStandalone--">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
从xml声明获取独立声明
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#isStandalone--">isStandalone</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
如果这是独立的,则为true,否则为false
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="standaloneSet--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>standaloneSet</h4> <pre>public boolean standaloneSet()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#standaloneSet--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
检查文档中是否设置了独立的
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#standaloneSet--">standaloneSet</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
如果在文档中设置了独立,则为true,否则为false
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getCharacterEncodingScheme--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getCharacterEncodingScheme</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getCharacterEncodingScheme()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getCharacterEncodingScheme--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
返回在xml声明中声明的字符编码如果没有声明,则返回null
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getCharacterEncodingScheme--">getCharacterEncodingScheme</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
在文档中声明的编码或空值
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getPITarget--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getPITarget</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getPITarget()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getPITarget--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
获取处理指令的目标
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getPITarget--">getPITarget</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
目标或null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getPIData--">
|
||
<!-- --> </a>
|
||
<ul class="blockList">
|
||
<li class="blockList"> <h4>getPIData</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getPIData()</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面复制: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getPIData--">XMLStreamReader</a></code></span>
|
||
</div>
|
||
<div class="block">
|
||
获取处理指令的数据部分
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getPIData--">getPIData</a></code>在接口
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
数据或null
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> <a name="getProperty-java.lang.String-">
|
||
<!-- --> </a>
|
||
<ul class="blockListLast">
|
||
<li class="blockList"> <h4>getProperty</h4> <pre>public <a href="../../../../java/lang/Object.html" title="class in java.lang">Object</a> getProperty(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> name)</pre>
|
||
<div class="block">
|
||
<span class="descfrmTypeLabel">说明从界面: <code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getProperty-java.lang.String-">XMLStreamReader</a></code>复制</span>
|
||
</div>
|
||
<div class="block">
|
||
从底层实现获取特征/属性的值
|
||
</div>
|
||
<dl>
|
||
<dt>
|
||
<span class="overrideSpecifyLabel">Specified by:</span>
|
||
</dt>
|
||
<dd>
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html#getProperty-java.lang.String-">getProperty</a></code>在界面
|
||
<code><a href="../../../../javax/xml/stream/XMLStreamReader.html" title="interface in javax.xml.stream">XMLStreamReader</a></code>
|
||
</dd>
|
||
<dt>
|
||
<span class="paramLabel">参数</span>
|
||
</dt>
|
||
<dd>
|
||
<code>name</code> - 属性的名称,可能不为空
|
||
</dd>
|
||
<dt>
|
||
<span class="returnLabel">结果</span>
|
||
</dt>
|
||
<dd>
|
||
物业的价值
|
||
</dd>
|
||
</dl> </li>
|
||
</ul> </li>
|
||
</ul> </li>
|
||
</ul>
|
||
</div>
|
||
</div> |