📄 buffer.html
字号:
<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/media/Buffer.html#Buffer()">Buffer</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#clone()">clone</A></B>()</CODE><BR> Clone a buffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#copy(javax.media.Buffer)">copy</A></B>(<A HREF="../../javax/media/Buffer.html">Buffer</A> buffer)</CODE><BR> Copy the attributes from the specified <CODE>Buffer</CODE> into this <CODE>Buffer</CODE></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getData()">getData</A></B>()</CODE><BR> Gets the internal data object that holds the media chunk contained in this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getDuration()">getDuration</A></B>()</CODE><BR> Gets the duration of this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getFlags()">getFlags</A></B>()</CODE><BR> Gets the mask of the flags set for this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/media/Format.html">Format</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getFormat()">getFormat</A></B>()</CODE><BR> Get the <CODE>Format</CODE> of the data in this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getHeader()">getHeader</A></B>()</CODE><BR> Gets the header information for the media chunk contained in this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getLength()">getLength</A></B>()</CODE><BR> Gets the length of the valid data in this <CODE>Buffer</CODE> if the data is held in an array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getOffset()">getOffset</A></B>()</CODE><BR> 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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getSequenceNumber()">getSequenceNumber</A></B>()</CODE><BR> Gets the sequence number of this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#getTimeStamp()">getTimeStamp</A></B>()</CODE><BR> Gets the time stamp of this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#isDiscard()">isDiscard</A></B>()</CODE><BR> Checks whether or not this <CODE>Buffer</CODE> is to be discarded.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#isEOM()">isEOM</A></B>()</CODE><BR> Checks whether or not this <CODE>Buffer</CODE> marks the end of the media stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setData(java.lang.Object)">setData</A></B>(java.lang.Object data)</CODE><BR> Sets the internal data object that holds the media chunk.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setDiscard(boolean)">setDiscard</A></B>(boolean discard)</CODE><BR> Sets the DISCARD flag for this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setDuration(long)">setDuration</A></B>(long duration)</CODE><BR> Sets the duration of this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setEOM(boolean)">setEOM</A></B>(boolean eom)</CODE><BR> Sets the EOM flag for this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setFlags(int)">setFlags</A></B>(int flags)</CODE><BR> Sets the flag mask for this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setFormat(javax.media.Format)">setFormat</A></B>(<A HREF="../../javax/media/Format.html">Format</A> format)</CODE><BR> Sets the <CODE>Format</CODE> of the data in this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setHeader(java.lang.Object)">setHeader</A></B>(java.lang.Object header)</CODE><BR> Sets the header information for the media chunk.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setLength(int)">setLength</A></B>(int length)</CODE><BR> Sets the length of the valid data stored in this <CODE>Buffer</CODE> if the data is held in an array.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setOffset(int)">setOffset</A></B>(int offset)</CODE><BR> 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.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setSequenceNumber(long)">setSequenceNumber</A></B>(long number)</CODE><BR> Sets the sequence number of this <CODE>Buffer</CODE>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/media/Buffer.html#setTimeStamp(long)">setTimeStamp</A></B>(long timeStamp)</CODE><BR> Sets the time stamp of this <CODE>Buffer</CODE>.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="timeStamp"><!-- --></A><H3>timeStamp</H3><PRE>protected long <B>timeStamp</B></PRE><DL><DD>The time stamp of the data held in this <CODE>Buffer</CODE>, in nanoseconds. The time stamp marks the time when presentation of this <CODE>Buffer</CODE> is to begin. If the start time for this <CODE>Buffer</CODE> is not known, this time stamp is set to <CODE>TIME_UNKNOWN</CODE>.</DL><HR><A NAME="duration"><!-- --></A><H3>duration</H3><PRE>protected long <B>duration</B></PRE><DL><DD>The duration of the data held in this <CODE>Buffer</CODE>, in nanoseconds. The duration specifies how long it will take for this <CODE>Buffer</CODE> to be presented when the playback rate is 1.0. If the duration for this <CODE>Buffer</CODE> is not known, it is set to <CODE>TIME_UNKNOWN</CODE>.</DL><HR><A NAME="format"><!-- --></A><H3>format</H3><PRE>protected <A HREF="../../javax/media/Format.html">Format</A> <B>format</B></PRE><DL><DD>The <CODE>Format</CODE> of the chunk of data in this <CODE>Buffer</CODE>.</DL><HR><A NAME="flags"><!-- --></A><H3>flags</H3><PRE>protected int <B>flags</B></PRE><DL><DD>A flag mask that describes the boolean attributes enabled for this <CODE>Buffer</CODE>. This mask is set to the logical sum of all of the flags that are set.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#FLAG_EOM"><CODE>FLAG_EOM</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_DISCARD"><CODE>FLAG_DISCARD</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SILENCE"><CODE>FLAG_SILENCE</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SID"><CODE>FLAG_SID</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_KEY_FRAME"><CODE>FLAG_KEY_FRAME</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_NO_DROP"><CODE>FLAG_NO_DROP</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_NO_WAIT"><CODE>FLAG_NO_WAIT</CODE></A>,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -