qtfactory.html

来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 470 行 · 第 1/2 页

HTML
470
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Mon Jul 15 11:49:44 PDT 2002 --><TITLE>: Class  QTFactory</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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 CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="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="class-use/QTFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="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="../../quicktime/app/QTDrawableMaker.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../quicktime/app/RecordMovie.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="QTFactory.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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">quicktime.app</FONT><BR>Class  QTFactory</H2><PRE>java.lang.Object  |  +--<B>quicktime.app.QTFactory</B></PRE><HR><DL><DT>public final class <B>QTFactory</B><DT>extends java.lang.Object</DL><P>The QTFactory class provides factory methods for creating classes that are used to present media that QuickTime can import. It also provides some utility methods  for finding directories and files in the local file system. <P> An example usage of some of the factory methods: <pre>File mediaFile = QTFactory.findAbsolutePath ("media/myMovie.mov");	QTDrawable d = QTFactory.makeDrawable(new QTFile(mediaFile));myQTCanvas.setClient (d);...// from an URLQTDrawable d2 = QTFactory.makeDrawable ("http://web.mywebsite.com/movies/myMovie.mov");myOtherQTCanvas.setClient (d2); </pre><P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== 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>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#addDirectory(java.io.File)">addDirectory</A></B>(java.io.File&nbsp;dir)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method will add a directory to the internal list of directories that are searched in the find methods.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.io.File</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#findAbsolutePath(java.lang.String)">findAbsolutePath</A></B>(java.lang.String&nbsp;fileName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a filename this method will exhaustively search all paths found in the user.dir and the classPath and will return a file object that contains an absolute path to the specified argument.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.io.File</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#findInSystemPaths(java.lang.String)">findInSystemPaths</A></B>(java.lang.String&nbsp;fileName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method will take apart the path specification of the fileName and return the first instance of the file (the last name in the path) that it finds within the  directories that are known to Java at runtime.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#makeDrawable(java.io.InputStream, int, java.lang.String)">makeDrawable</A></B>(java.io.InputStream&nbsp;is,             int&nbsp;hintType,             java.lang.String&nbsp;hintString)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This returns a QTDrawable object from the specified input stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#makeDrawable(java.io.InputStream, int, java.lang.String, quicktime.app.QTDrawableMaker)">makeDrawable</A></B>(java.io.InputStream&nbsp;is,             int&nbsp;hintType,             java.lang.String&nbsp;hintString,             <A HREF="../../quicktime/app/QTDrawableMaker.html">QTDrawableMaker</A>&nbsp;maker)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This returns a QTDrawable object from the specified input stream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#makeDrawable(quicktime.io.QTFile)">makeDrawable</A></B>(<A HREF="../../quicktime/io/QTFile.html">QTFile</A>&nbsp;qtFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This returns a QTDrawable object from the specified file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#makeDrawable(quicktime.io.QTFile, quicktime.app.QTDrawableMaker)">makeDrawable</A></B>(<A HREF="../../quicktime/io/QTFile.html">QTFile</A>&nbsp;qtFile,             <A HREF="../../quicktime/app/QTDrawableMaker.html">QTDrawableMaker</A>&nbsp;maker)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This returns a QTDrawable object from the specified file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#makeDrawable(java.lang.String)">makeDrawable</A></B>(java.lang.String&nbsp;url)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This returns a QTDrawable object from the specified URL.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#makeDrawable(java.lang.String, quicktime.app.QTDrawableMaker)">makeDrawable</A></B>(java.lang.String&nbsp;url,             <A HREF="../../quicktime/app/QTDrawableMaker.html">QTDrawableMaker</A>&nbsp;maker)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This returns a QTDrawable object from the specified Universal Resource Locator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../quicktime/app/QTFactory.html#removeDirectory(java.io.File)">removeDirectory</A></B>(java.io.File&nbsp;dir)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method will remove a directory from the internal list of directories that are searched in the find methods.</TD></TR></TABLE>&nbsp;<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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="findInSystemPaths(java.lang.String)"><!-- --></A><H3>findInSystemPaths</H3><PRE>public static java.io.File <B>findInSystemPaths</B>(java.lang.String&nbsp;fileName)                                      throws java.io.IOException</PRE><DL><DD>This method will take apart the path specification of the fileName and return the first instance of the file (the last name in the path) that it finds within the  directories that are known to Java at runtime.<DD><DL>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?