uTools-Manuals/docs/java/org/xml/sax/ext/Locator2Impl.html

280 lines
13 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact2, compact3
</div>
<div class="subTitle">
org.xml.sax.ext
</div>
<h2 class="title" title="Class Locator2Impl">Class Locator2Impl</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><a href="../../../../org/xml/sax/helpers/LocatorImpl.html" title="class in org.xml.sax.helpers">org.xml.sax.helpers.LocatorImpl</a></li>
<li>
<ul class="inheritance">
<li>org.xml.sax.ext.Locator2Impl</li>
</ul> </li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Implemented Interfaces:
</dt>
<dd>
<span><a href="../../../../org/xml/sax/ext/Locator2.html" title="org.xml.sax.ext中的接口">Locator2</a> <a href="../../../../org/xml/sax/Locator.html" title="org.xml.sax中的接口">Locator</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public class <span class="typeNameLabel">Locator2Impl</span>
extends <a href="../../../../org/xml/sax/helpers/LocatorImpl.html" title="class in org.xml.sax.helpers">LocatorImpl</a>
implements <a href="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext">Locator2</a></pre>
<div class="block">
<span>SAX2扩展助手持有附加实体信息实现<a href="../../../../org/xml/sax/ext/Locator2.html" title="org.xml.sax.ext中的接口"><code>Locator2</code></a>接口。</span>
<blockquote>
<span><em>This module, both source code and documentation, is in the Public Domain, and comes with <strong>NO WARRANTY</strong>.</em></span>
</blockquote>
<p> <span>这不是仅核心的SAX2发行版的一部分。</span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
SAX 2.0.2
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== 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="../../../../org/xml/sax/ext/Locator2Impl.html#Locator2Impl--">Locator2Impl</a></span>()</code>
<div class="block">
构造一个新的空的Locator2Impl对象。
</div> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/xml/sax/ext/Locator2Impl.html#Locator2Impl-org.xml.sax.Locator-">Locator2Impl</a></span>(<a href="../../../../org/xml/sax/Locator.html" title="interface in org.xml.sax">Locator</a> locator)</code>
<div class="block">
复制现有的定位器或Locator2对象。
</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><a href="../../../../java/lang/String.html" title="class in java.lang">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/xml/sax/ext/Locator2Impl.html#getEncoding--">getEncoding</a></span>()</code>
<div class="block">
返回encoding属性的当前值。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<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="../../../../org/xml/sax/ext/Locator2Impl.html#getXMLVersion--">getXMLVersion</a></span>()</code>
<div class="block">
返回version属性的当前值。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/xml/sax/ext/Locator2Impl.html#setEncoding-java.lang.String-">setEncoding</a></span>(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> encoding)</code>
<div class="block">
分配编码属性的当前值。
</div> </td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/xml/sax/ext/Locator2Impl.html#setXMLVersion-java.lang.String-">setXMLVersion</a></span>(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> version)</code>
<div class="block">
分配版本属性的当前值。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.xml.sax.helpers.LocatorImpl">
<!-- --> </a> <h3>Methods inherited from class org.xml.sax.helpers.<a href="../../../../org/xml/sax/helpers/LocatorImpl.html" title="class in org.xml.sax.helpers">LocatorImpl</a></h3> <code><a href="../../../../org/xml/sax/helpers/LocatorImpl.html#getColumnNumber--">getColumnNumber</a>, <a href="../../../../org/xml/sax/helpers/LocatorImpl.html#getLineNumber--">getLineNumber</a>, <a href="../../../../org/xml/sax/helpers/LocatorImpl.html#getPublicId--">getPublicId</a>, <a href="../../../../org/xml/sax/helpers/LocatorImpl.html#getSystemId--">getSystemId</a>, <a href="../../../../org/xml/sax/helpers/LocatorImpl.html#setColumnNumber-int-">setColumnNumber</a>, <a href="../../../../org/xml/sax/helpers/LocatorImpl.html#setLineNumber-int-">setLineNumber</a>, <a href="../../../../org/xml/sax/helpers/LocatorImpl.html#setPublicId-java.lang.String-">setPublicId</a>, <a href="../../../../org/xml/sax/helpers/LocatorImpl.html#setSystemId-java.lang.String-">setSystemId</a></code></li>
</ul>
<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>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.xml.sax.Locator">
<!-- --> </a> <h3>Methods inherited from interface org.xml.sax.<a href="../../../../org/xml/sax/Locator.html" title="interface in org.xml.sax">Locator</a></h3> <code><a href="../../../../org/xml/sax/Locator.html#getColumnNumber--">getColumnNumber</a>, <a href="../../../../org/xml/sax/Locator.html#getLineNumber--">getLineNumber</a>, <a href="../../../../org/xml/sax/Locator.html#getPublicId--">getPublicId</a>, <a href="../../../../org/xml/sax/Locator.html#getSystemId--">getSystemId</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="Locator2Impl--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>Locator2Impl</h4> <pre>public Locator2Impl()</pre>
<div class="block">
<span>构造一个新的空的Locator2Impl对象。</span>
<span>这通常不会有用,因为此类的主要目的是对现有的定位器进行快照。</span>
</div> </li>
</ul> <a name="Locator2Impl-org.xml.sax.Locator-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>Locator2Impl</h4> <pre>public Locator2Impl(<a href="../../../../org/xml/sax/Locator.html" title="interface in org.xml.sax">Locator</a> locator)</pre>
<div class="block">
<span>复制现有的定位器或Locator2对象。</span>
<span>如果对象实现Locator2则会复制<em>编码</em><em>版本</em>字符串的值,否则将其设置为<em>null</em></span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>locator</code> - 现有的Locator对象。
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getXMLVersion--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getXMLVersion</h4> <pre>public <a href="../../../../java/lang/String.html" title="class in java.lang">String</a> getXMLVersion()</pre>
<div class="block">
返回version属性的当前值。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../../org/xml/sax/ext/Locator2.html#getXMLVersion--">getXMLVersion</a></code>在界面
<code><a href="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext">Locator2</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
用于解释实体文本的XML版本的标识符如果该信息在当前解析状态尚不可用则为null。
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../../org/xml/sax/ext/Locator2Impl.html#setXMLVersion-java.lang.String-"><code>setXMLVersion(java.lang.String)</code></a>
</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">
返回encoding属性的当前值。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">Specified by:</span>
</dt>
<dd>
<code><a href="../../../../org/xml/sax/ext/Locator2.html#getEncoding--">getEncoding</a></code>在接口
<code><a href="../../../../org/xml/sax/ext/Locator2.html" title="interface in org.xml.sax.ext">Locator2</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
用于解释*实体文本的字符编码的名称如果未为通过InputSource传递的*字符流提供null或在当前解析状态下尚未提供则为null。
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../../org/xml/sax/ext/Locator2Impl.html#setEncoding-java.lang.String-"><code>setEncoding(java.lang.String)</code></a>
</dd>
</dl> </li>
</ul> <a name="setXMLVersion-java.lang.String-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>setXMLVersion</h4> <pre>public void setXMLVersion(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> version)</pre>
<div class="block">
分配版本属性的当前值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>version</code> - 新的“版本”值
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../../org/xml/sax/ext/Locator2Impl.html#getXMLVersion--"><code>getXMLVersion()</code></a>
</dd>
</dl> </li>
</ul> <a name="setEncoding-java.lang.String-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>setEncoding</h4> <pre>public void setEncoding(<a href="../../../../java/lang/String.html" title="class in java.lang">String</a> encoding)</pre>
<div class="block">
分配编码属性的当前值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>encoding</code> - 新的“编码”值
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../../org/xml/sax/ext/Locator2Impl.html#getEncoding--"><code>getEncoding()</code></a>
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>