📄 dataline.info.html
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD><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></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="DataLine.Info(java.lang.Class, javax.sound.sampled.AudioFormat[], int, int)"><!-- --></A><H3>DataLine.Info</H3><PRE>public <B>DataLine.Info</B>(<A HREF="../../../java/lang/Class.html">Class</A> lineClass, <A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A>[] formats, int minBufferSize, int maxBufferSize)</PRE><DL><DD>Constructs a data line's info object from the specified information, which includes a set of supported audio formats and a range for the buffer size. This constructor is typically used by mixer implementations when returning information about a supported line.<DD><DL><DT><B>Parameters:</B><DD><CODE>lineClass</CODE> - the class of the data line described by the info object<DD><CODE>formats</CODE> - set of formats supported<DD><CODE>minBufferSize</CODE> - minimum buffer size supported by the data line, in bytes<DD><CODE>maxBufferSize</CODE> - maximum buffer size supported by the data line, in bytes</DL></DD></DL><HR><A NAME="DataLine.Info(java.lang.Class, javax.sound.sampled.AudioFormat, int)"><!-- --></A><H3>DataLine.Info</H3><PRE>public <B>DataLine.Info</B>(<A HREF="../../../java/lang/Class.html">Class</A> lineClass, <A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format, int bufferSize)</PRE><DL><DD>Constructs a data line's info object from the specified information, which includes a single audio format and a desired buffer size. This constructor is typically used by an application to describe a desired line.<DD><DL><DT><B>Parameters:</B><DD><CODE>lineClass</CODE> - the class of the data line described by the info object<DD><CODE>format</CODE> - desired format<DD><CODE>bufferSize</CODE> - desired buffer size in bytes</DL></DD></DL><HR><A NAME="DataLine.Info(java.lang.Class, javax.sound.sampled.AudioFormat)"><!-- --></A><H3>DataLine.Info</H3><PRE>public <B>DataLine.Info</B>(<A HREF="../../../java/lang/Class.html">Class</A> lineClass, <A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format)</PRE><DL><DD>Constructs a data line's info object from the specified information, which includes a single audio format. This constructor is typically used by an application to describe a desired line.<DD><DL><DT><B>Parameters:</B><DD><CODE>lineClass</CODE> - the class of the data line described by the info object<DD><CODE>format</CODE> - desired format</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getFormats()"><!-- --></A><H3>getFormats</H3><PRE>public <A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A>[] <B>getFormats</B>()</PRE><DL><DD>Obtains a set of audio formats supported by the data line. Note that <code>isFormatSupported(AudioFormat)</code> might return <code>true</code> for certain additional formats that are missing from the set returned by <code>getFormats()</code>. The reverse is not the case: <code>isFormatSupported(AudioFormat)</code> is guaranteed to return <code>true</code> for all formats returned by <code>getFormats()</code>.<DD><DL><DT><B>Returns:</B><DD>a set of supported audio formats.<DT><B>See Also: </B><DD><A HREF="../../../javax/sound/sampled/DataLine.Info.html#isFormatSupported(javax.sound.sampled.AudioFormat)"><CODE>isFormatSupported(AudioFormat)</CODE></A></DL></DD></DL><HR><A NAME="isFormatSupported(javax.sound.sampled.AudioFormat)"><!-- --></A><H3>isFormatSupported</H3><PRE>public boolean <B>isFormatSupported</B>(<A HREF="../../../javax/sound/sampled/AudioFormat.html">AudioFormat</A> format)</PRE><DL><DD>Indicates whether this data line supports a particular audio format. The default implementation of this method simply returns <code>true</code> if the specified format matches any of the supported formats.<DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - the audio format for which support is queried.<DT><B>Returns:</B><DD><code>true</code> if the format is supported, otherwise <code>false</code><DT><B>See Also: </B><DD><A HREF="../../../javax/sound/sampled/DataLine.Info.html#getFormats()"><CODE>getFormats()</CODE></A>, <A HREF="../../../javax/sound/sampled/AudioFormat.html#matches(javax.sound.sampled.AudioFormat)"><CODE>AudioFormat.matches(javax.sound.sampled.AudioFormat)</CODE></A></DL></DD></DL><HR><A NAME="getMinBufferSize()"><!-- --></A><H3>getMinBufferSize</H3><PRE>public int <B>getMinBufferSize</B>()</PRE><DL><DD>Obtains the minimum buffer size supported by the data line.<DD><DL><DT><B>Returns:</B><DD>minimum buffer size in bytes, or <code>AudioSystem.NOT_SPECIFIED</code></DL></DD></DL><HR><A NAME="getMaxBufferSize()"><!-- --></A><H3>getMaxBufferSize</H3><PRE>public int <B>getMaxBufferSize</B>()</PRE><DL><DD>Obtains the maximum buffer size supported by the data line.<DD><DL><DT><B>Returns:</B><DD>maximum buffer size in bytes, or <code>AudioSystem.NOT_SPECIFIED</code></DL></DD></DL><HR><A NAME="matches(javax.sound.sampled.Line.Info)"><!-- --></A><H3>matches</H3><PRE>public boolean <B>matches</B>(<A HREF="../../../javax/sound/sampled/Line.Info.html">Line.Info</A> info)</PRE><DL><DD>Determines whether the specified info object matches this one. To match, the superclass match requirements must be met. In addition, this object's minimum buffer size must be at least as large as that of the object specified, its maximum buffer size must be at most as large as that of the object specified, and all of its formats must match formats supported by the object specified.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/sound/sampled/Line.Info.html#matches(javax.sound.sampled.Line.Info)">matches</A></CODE> in class <CODE><A HREF="../../../javax/sound/sampled/Line.Info.html">Line.Info</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if this object matches the one specified, otherwise <code>false</code>.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Obtains a textual description of the data line info.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/sound/sampled/Line.Info.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../javax/sound/sampled/Line.Info.html">Line.Info</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string description</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/DataLine.Info.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/sound/sampled/Control.Type.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/sound/sampled/EnumControl.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="DataLine.Info.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -