109 lines
5.1 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">
compact3
</div>
<div class="subTitle">
javax.sql.rowset.spi
</div>
<h2 class="title" title="Interface XmlReader">Interface XmlReader</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Superinterfaces:
</dt>
<dd>
<span><a href="../../../../javax/sql/RowSetReader.html" title="javax.sql中的接口">RowSetReader</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">XmlReader</span>
extends <a href="../../../../javax/sql/RowSetReader.html" title="interface in javax.sql">RowSetReader</a></pre>
<div class="block">
<span>一个专门的界面有助于扩展SyncProvider XML定向同步提供<code>SyncProvider</code>抽象类。</span>
<p> <span><code>SyncProvider</code>实现提供XML数据读取器功能如输出XML流功能可以实现此接口以提供标准<code>XmlReader</code>对象<code>WebRowSet</code>实现。</span> </p>
<p> <span>一个<code>XmlReader</code>对象被注册为一个<code>WebRowSet</code>的XML阅读器被分配到行集的<code>xmlReader</code>字段。</span> <span><code>WebRowSet</code>对象的<code>readXml</code>方法被调用时它又调用其XML阅读器的<code>readXML</code>方法。</span> </p>
</div> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== 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="t3"><span><a href="javascript:show(4);">抽象方法</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/sql/rowset/spi/XmlReader.html#readXML-javax.sql.rowset.WebRowSet-java.io.Reader-">readXML</a></span>(<a href="../../../../javax/sql/rowset/WebRowSet.html" title="interface in javax.sql.rowset">WebRowSet</a> caller, <a href="../../../../java/io/Reader.html" title="class in java.io">Reader</a> reader)</code>
<div class="block">
从XML格式的给定输入流中读取和解析给定的
<code>WebRowSet</code>对象。
</div> </td>
</tr>
</tbody>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.javax.sql.RowSetReader">
<!-- --> </a> <h3>Methods inherited from interface javax.sql.<a href="../../../../javax/sql/RowSetReader.html" title="interface in javax.sql">RowSetReader</a></h3> <code><a href="../../../../javax/sql/RowSetReader.html#readData-javax.sql.RowSetInternal-">readData</a></code></li>
</ul> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="readXML-javax.sql.rowset.WebRowSet-java.io.Reader-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>readXML</h4> <pre>void readXML(<a href="../../../../javax/sql/rowset/WebRowSet.html" title="interface in javax.sql.rowset">WebRowSet</a> caller,
<a href="../../../../java/io/Reader.html" title="class in java.io">Reader</a> reader)
throws <a href="../../../../java/sql/SQLException.html" title="class in java.sql">SQLException</a></pre>
<div class="block">
<span>从XML格式的给定输入流中读取和解析给定的<code>WebRowSet</code>对象。</span>
<span>给定的<code>WebRowSet</code>对象的<code>xmlReader</code>字段必须包含此<code>XmlReader</code>对象。</span>
<p> <span>如果发生解析错误抛出的异常将包括有关原始XML文档中错误位置的信息。</span> </p>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>caller</code> - 要解析的
<code>WebRowSet</code>对象,其
<code>xmlReader</code>字段必须包含对此
<code>XmlReader</code>对象的引用
</dd>
<dd>
<code>reader</code> -
<code>java.io.Reader</code>对象,从中读取
<code>caller</code>
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../../java/sql/SQLException.html" title="class in java.sql">SQLException</a></code> - if a database access error occurs or this
<code>XmlReader</code> object is not the reader for the given rowset
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>