91 lines
3.8 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">
javax.xml.transform
</div>
<h2 class="title" title="Interface URIResolver">Interface URIResolver</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr/> <br/> <pre>public interface <span class="typeNameLabel">URIResolver</span></pre>
<div class="block">
<p>实现此接口的对象可由处理器调用将documentxslimport或xslinclude中使用的URI转换为Source对象。 </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><a href="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/xml/transform/URIResolver.html#resolve-java.lang.String-java.lang.String-">resolve</a></span>(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> href, <a href="../../../java/lang/String.html" title="class in java.lang">String</a> base)</code>
<div class="block">
处理器遇到xslincludexslimport或document函数时调用。
</div> </td>
</tr>
</tbody>
</table> </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="resolve-java.lang.String-java.lang.String-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>resolve</h4> <pre><a href="../../../javax/xml/transform/Source.html" title="interface in javax.xml.transform">Source</a> resolve(<a href="../../../java/lang/String.html" title="class in java.lang">String</a> href,
<a href="../../../java/lang/String.html" title="class in java.lang">String</a> base)
throws <a href="../../../javax/xml/transform/TransformerException.html" title="class in javax.xml.transform">TransformerException</a></pre>
<div class="block">
处理器遇到xslincludexslimport或document函数时调用。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>href</code> - 一个href属性可以是相对的或绝对的。
</dd>
<dd>
<code>base</code> - 如果绝对URI是必需的第一个参数将被绝对的基本URI。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
Source对象如果href无法解析则为null并且处理器应尝试解析URI本身。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../../javax/xml/transform/TransformerException.html" title="class in javax.xml.transform">TransformerException</a></code> - if an error occurs when trying to resolve the URI.
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>