233 lines
11 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">
javax.sound.sampled
</div>
<h2 class="title" title="Class Line.Info">Class Line.Info</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.sound.sampled.Line.Info</li>
</ul> </li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
已知直接子类:
</dt>
<dd>
<span><a href="../../../javax/sound/sampled/DataLine.Info.html" title="javax.sound.sampled中的类">DataLine.Info</a> <a href="../../../javax/sound/sampled/Port.Info.html" title="javax.sound.sampled中的类">Port.Info</a></span>
</dd>
</dl>
<dl>
<dt>
Enclosing interface:
</dt>
<dd>
<span><a href="../../../javax/sound/sampled/Line.html" title="javax.sound.sampled中的接口">Line</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public static class <span class="typeNameLabel">Line.Info</span>
extends <a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></pre>
<div class="block">
<span>A <code>Line.Info</code>对象包含有关行的信息。</span>
<span><code>Line.Info</code>本身提供的<code>Line.Info</code>信息就是Java类的线。</span>
<span><code>Line.Info</code>一个子类添加了关于该行的其他种类的信息。</span>
<span>这种额外的信息取决于其<code>Line</code>子接口是由各种线条的实施<code>Line.Info</code>子类描述。</span>
<p> <span><code>Line.Info</code>可使用的各种方法来检索<code>Line</code> <code>Mixer</code><code>AudioSystem</code>接口。</span> <span>其他这样的方法可以通过一个<code>Line.Info</code>作为参数,以了解匹配指定配置的行是否可用并获得它们。</span> </p>
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.3
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../../javax/sound/sampled/Line.html#getLineInfo--"><code>Line.getLineInfo()</code></a>
<a href="../../../javax/sound/sampled/Mixer.html#getSourceLineInfo--"><code>Mixer.getSourceLineInfo()</code></a>
<a href="../../../javax/sound/sampled/Mixer.html#getTargetLineInfo--"><code>Mixer.getTargetLineInfo()</code></a>
<a href="../../../javax/sound/sampled/Mixer.html#getLine-javax.sound.sampled.Line.Info-"><code><code>Mixer.getLine(Line.Info)</code></code></a>
<a href="../../../javax/sound/sampled/Mixer.html#getSourceLineInfo-javax.sound.sampled.Line.Info-"><code><code>Mixer.getSourceLineInfo(Line.Info)</code></code></a>
<a href="../../../javax/sound/sampled/Mixer.html#getSourceLineInfo-javax.sound.sampled.Line.Info-"><code><code>Mixer.getTargetLineInfo(Line.Info)</code></code></a>
<a href="../../../javax/sound/sampled/Mixer.html#isLineSupported-javax.sound.sampled.Line.Info-"><code><code>Mixer.isLineSupported(Line.Info)</code></code></a>
<a href="../../../javax/sound/sampled/AudioSystem.html#getLine-javax.sound.sampled.Line.Info-"><code><code>AudioSystem.getLine(Line.Info)</code></code></a>
<a href="../../../javax/sound/sampled/AudioSystem.html#getSourceLineInfo-javax.sound.sampled.Line.Info-"><code><code>AudioSystem.getSourceLineInfo(Line.Info)</code></code></a>
<a href="../../../javax/sound/sampled/AudioSystem.html#getTargetLineInfo-javax.sound.sampled.Line.Info-"><code><code>AudioSystem.getTargetLineInfo(Line.Info)</code></code></a>
<a href="../../../javax/sound/sampled/AudioSystem.html#isLineSupported-javax.sound.sampled.Line.Info-"><code><code>AudioSystem.isLineSupported(Line.Info)</code></code></a>
</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="../../../javax/sound/sampled/Line.Info.html#Info-java.lang.Class-">Info</a></span>(<a href="../../../java/lang/Class.html" title="class in java.lang"></a>&lt;?&gt; lineClass)</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><a href="../../../java/lang/Class.html" title="class in java.lang"></a>&lt;?&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/sound/sampled/Line.Info.html#getLineClass--">getLineClass</a></span>()</code>
<div class="block">
获取此Line.Info对象描述的行的类。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../javax/sound/sampled/Line.Info.html#matches-javax.sound.sampled.Line.Info-">matches</a></span>(<a href="../../../javax/sound/sampled/Line.Info.html" title="class in javax.sound.sampled">Line.Info</a> info)</code>
<div class="block">
指示指定的信息对象是否与此匹配。
</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/sound/sampled/Line.Info.html#toString--">toString</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#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="Info-java.lang.Class-">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>Info</h4> <pre>public Info(<a href="../../../java/lang/Class.html" title="class in java.lang"></a>&lt;?&gt; lineClass)</pre>
<div class="block">
<span>构造一个描述指定类的行的信息对象。</span>
<span>该构造函数通常由应用程序用于描述所需的行。</span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>lineClass</code> - 新的Line.Info对象描述的行的类
</dd>
</dl> </li>
</ul> </li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getLineClass--">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getLineClass</h4> <pre>public <a href="../../../java/lang/Class.html" title="class in java.lang"></a>&lt;?&gt; getLineClass()</pre>
<div class="block">
获取此Line.Info对象描述的行的类。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
描述的线的课
</dd>
</dl> </li>
</ul> <a name="matches-javax.sound.sampled.Line.Info-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>matches</h4> <pre>public boolean matches(<a href="../../../javax/sound/sampled/Line.Info.html" title="class in javax.sound.sampled">Line.Info</a> info)</pre>
<div class="block">
<span>指示指定的信息对象是否与此匹配。</span>
<span>要匹配,指定的对象必须与这个对象的特殊情况相同。</span>
<span>指定的info对象必须是与此类型相同类的实例或者是该实例的子类型。</span>
<span>此外,指定对象的属性必须与此功能兼容。</span>
<span>具体来说,指定的信息对象的路由配置必须与这个信息对象的路由配置兼容。</span>
<span>子类可以添加其他标准来确定两个对象是否匹配。</span>
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>info</code> - 正在与此相比较的信息对象
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<code>true</code>如果指定的对象匹配这个,
<code>false</code>否则
</dd>
</dl> </li>
</ul> <a name="toString--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>toString</h4> <pre>public <a href="../../../java/lang/String.html" title="class in java.lang">String</a> toString()</pre>
<div class="block">
获取行信息的文本描述。
</div>
<dl>
<dt>
<span class="overrideSpecifyLabel">重写:</span>
</dt>
<dd>
<code><a href="../../../java/lang/Object.html#toString--">toString</a></code>在类别
<code><a href="../../../java/lang/Object.html" title="class in java.lang">Object</a></code>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
a string description
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>