qtfactory.html
来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 470 行 · 第 1/2 页
HTML
470 行
<DT><B>Parameters:</B><DD><CODE>path</CODE> - a path specification that should be found somewhere in the system paths<DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE> - will be returned if the Applet is not allowed access to the class path system property. Typically this is the case - you should use the codeBase or documentBase paths of the applet to position and locate files at run time.<DD><CODE>java.io.IOException</CODE> - the file cannot be found in any of the class path locations.</DL></DD></DL><HR><A NAME="addDirectory(java.io.File)"><!-- --></A><H3>addDirectory</H3><PRE>public static void <B>addDirectory</B>(java.io.File dir) throws java.io.IOException</PRE><DL><DD>This method will add a directory to the internal list of directories that are searched in the find methods. The incoming File object must specify a directory that exists or an IOException will be thrown. If the directory is already a member of the list it will not be added. Directories that are added explicitly will be searched first in the find calls.<DD><DL><DT><B>Parameters:</B><DD><CODE>dir</CODE> - a directory</DL></DD></DL><HR><A NAME="removeDirectory(java.io.File)"><!-- --></A><H3>removeDirectory</H3><PRE>public static void <B>removeDirectory</B>(java.io.File dir) throws java.io.IOException</PRE><DL><DD>This method will remove a directory from the internal list of directories that are searched in the find methods.<DD><DL><DT><B>Parameters:</B><DD><CODE>dir</CODE> - a directory</DL></DD></DL><HR><A NAME="findAbsolutePath(java.lang.String)"><!-- --></A><H3>findAbsolutePath</H3><PRE>public static java.io.File <B>findAbsolutePath</B>(java.lang.String fileName) throws java.io.IOException</PRE><DL><DD>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.<DD><DL><DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the file to search for.<DT><B>Returns:</B><DD>a file object that represents the absolute path to the specified path.<DT><B>Throws:</B><DD><CODE>java.lang.SecurityException</CODE> - will be returned if the Applet is not allowed access to the class path system property. Typically this is the case - you should use the codeBase or documentBase paths of the applet to position and locate files at run time.<DD><CODE>java.io.IOException</CODE> - the file cannot be found in any of the class path locations.</DL></DD></DL><HR><A NAME="makeDrawable(quicktime.io.QTFile)"><!-- --></A><H3>makeDrawable</H3><PRE>public static <A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A> <B>makeDrawable</B>(<A HREF="../../quicktime/io/QTFile.html">QTFile</A> qtFile) throws java.io.IOException, <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This returns a QTDrawable object from the specified file. The file must specify an absolute path. It uses the default QTDrawableMaker to return an GraphicsImporterDrawer object from a GraphicsImporter and a QTPlayer from a Movie.<DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the file to make a movie out of<DT><B>Returns:</B><DD>a drawable object that can present the QT File<DT><B>Throws:</B><DD><CODE><A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></CODE> - If the file is of a format that is not understood by QuickTime the function will throw a StdQTException with error code invalidMovie.<DD><CODE>java.io.IOException</CODE> - is thrown if the file would violate security settings of an applet<DT><B>See Also: </B><DD><A HREF="../../quicktime/app/image/GraphicsImporterDrawer.html"><CODE>GraphicsImporterDrawer</CODE></A>, <A HREF="../../quicktime/app/players/QTPlayer.html"><CODE>QTPlayer</CODE></A>, <A HREF="../../quicktime/app/QTDrawableMaker.html"><CODE>QTDrawableMaker</CODE></A></DL></DD></DL><HR><A NAME="makeDrawable(quicktime.io.QTFile, quicktime.app.QTDrawableMaker)"><!-- --></A><H3>makeDrawable</H3><PRE>public static <A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A> <B>makeDrawable</B>(<A HREF="../../quicktime/io/QTFile.html">QTFile</A> qtFile, <A HREF="../../quicktime/app/QTDrawableMaker.html">QTDrawableMaker</A> maker) throws java.io.IOException, <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This returns a QTDrawable object from the specified file. The file must specify an absolute path. It uses the supplied QTDrawableMaker to return objects from a GraphicsImporter or a Movie.<DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - the file to make a movie out of<DD><CODE>maker</CODE> - specifies which type of QTDrawable object is returned when the factory imports a Graphics or Movie based media.<DT><B>Returns:</B><DD>a drawable object that can present the QT File<DT><B>Throws:</B><DD><CODE><A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></CODE> - If the file is of a format that is not understood by QuickTime the function will throw a StdQTException with error code invalidMovie.<DD><CODE>java.io.IOException</CODE> - if the file is not found<DT><B>See Also: </B><DD><A HREF="../../quicktime/app/image/GraphicsImporterDrawer.html"><CODE>GraphicsImporterDrawer</CODE></A>, <A HREF="../../quicktime/app/players/QTPlayer.html"><CODE>QTPlayer</CODE></A>, <A HREF="../../quicktime/app/QTDrawableMaker.html"><CODE>QTDrawableMaker</CODE></A></DL></DD></DL><HR><A NAME="makeDrawable(java.io.InputStream, int, java.lang.String)"><!-- --></A><H3>makeDrawable</H3><PRE>public static <A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A> <B>makeDrawable</B>(java.io.InputStream is, int hintType, java.lang.String hintString) throws java.io.IOException, <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This returns a QTDrawable object from the specified input stream. The input stream will be read in its entirety to a byte array which is then used as the source of the data to import. The hints are used by the importers to determine the format of the data contained within the input stream. Hints must be given to QuickTime about the format of the data that is contained within the InputStream. Hints can take one of three forms <UL> <LI>MIME Type -> kDataRefMimeTypeTag <LI>MacOS File Type -> kDataRefQTFileTypeTag <LI>File extension -> kDataRefFileExtensionTag </UL> The preferred usage is to pass in either the MacOS File Type (which will also work on non-MacOS platforms) or the MIME type information. The File extension is a more arbitrary indicator and should be the least referred to. It uses the default QTDrawableMaker to return objects from a GraphicsImporter or a Movie.<DD><DL><DT><B>Parameters:</B><DD><CODE>is</CODE> - the input stream from which the bytes will be read<DD><CODE>hintFlag</CODE> - describes the hint data that is used<DD><CODE>hintString</CODE> - contains the hint information<DT><B>Returns:</B><DD>a drawable object that can present the QT File<DT><B>Throws:</B><DD><CODE><A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></CODE> - If the data is of a format that is not understood by QuickTime the function will throw a StdQTException with error code invalidMovie.<DD><CODE>java.io.IOException</CODE> - is thrown if the input stream is unable to aquire all the data<DT><B>See Also: </B><DD><A HREF="../../quicktime/app/image/GraphicsImporterDrawer.html"><CODE>GraphicsImporterDrawer</CODE></A>, <A HREF="../../quicktime/app/players/QTPlayer.html"><CODE>QTPlayer</CODE></A>, <A HREF="../../quicktime/app/QTDrawableMaker.html"><CODE>QTDrawableMaker</CODE></A></DL></DD></DL><HR><A NAME="makeDrawable(java.io.InputStream, int, java.lang.String, quicktime.app.QTDrawableMaker)"><!-- --></A><H3>makeDrawable</H3><PRE>public static <A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A> <B>makeDrawable</B>(java.io.InputStream is, int hintType, java.lang.String hintString, <A HREF="../../quicktime/app/QTDrawableMaker.html">QTDrawableMaker</A> maker) throws java.io.IOException, <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This returns a QTDrawable object from the specified input stream. The input stream will be read in its entirety to a byte array which is then used as the source of the data to import. The hints are used by the importers to determine the format of the data contained within the input stream. Hints must be given to QuickTime about the format of the data that is contained within the InputStream. Hints can take one of three forms <UL> <LI>MIME Type -> kDataRefMimeTypeTag <LI>MacOS File Type -> kDataRefQTFileTypeTag <LI>File extension -> kDataRefFileExtensionTag </UL> The preferred usage is to pass in either the MacOS File Type (which will also work on non-MacOS platforms) or the MIME type information. The File extension is a more arbitrary indicator and should be the least referred to. It uses the default QTDrawableMaker to return objects from a GraphicsImporter or a Movie.<DD><DL><DT><B>Parameters:</B><DD><CODE>hintFlag</CODE> - describes the hint data that is used<DD><CODE>hintString</CODE> - contains the hint information<DD><CODE>maker</CODE> - specifies which type of QTDrawable object is returned when the factory imports a Graphics or Movie based media.<DT><B>Returns:</B><DD>a drawable object that can present the QT File<DT><B>Throws:</B><DD><CODE><A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></CODE> - If the data is of a format that is not understood by QuickTime the function will throw a StdQTException with error code invalidMovie.<DD><CODE>java.io.IOException</CODE> - is thrown if the input stream is unable to aquire all the data<DT><B>See Also: </B><DD><A HREF="../../quicktime/app/image/GraphicsImporterDrawer.html"><CODE>GraphicsImporterDrawer</CODE></A>, <A HREF="../../quicktime/app/players/QTPlayer.html"><CODE>QTPlayer</CODE></A>, <A HREF="../../quicktime/app/QTDrawableMaker.html"><CODE>QTDrawableMaker</CODE></A></DL></DD></DL><HR><A NAME="makeDrawable(java.lang.String)"><!-- --></A><H3>makeDrawable</H3><PRE>public static <A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A> <B>makeDrawable</B>(java.lang.String url) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This returns a QTDrawable object from the specified URL. It uses the default QTDrawableMaker to return an GraphicsImporterDrawer from a GraphicsImporter or a QTPlayer from a Movie.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - specifies the URL to the QT source media<DT><B>Returns:</B><DD>a drawable object that can present a QT media<DT><B>Throws:</B><DD><CODE><A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></CODE> - If the file is of a format that is not understood by QuickTime the function will throw a StdQTException with error code invalidMovie.<DD><CODE>java.lang.SecurityException</CODE> - is thrown if the file would violate security settings of an applet</DL></DD></DL><HR><A NAME="makeDrawable(java.lang.String, quicktime.app.QTDrawableMaker)"><!-- --></A><H3>makeDrawable</H3><PRE>public static <A HREF="../../quicktime/app/display/QTDrawable.html">QTDrawable</A> <B>makeDrawable</B>(java.lang.String url, <A HREF="../../quicktime/app/QTDrawableMaker.html">QTDrawableMaker</A> maker) throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This returns a QTDrawable object from the specified Universal Resource Locator. It uses the supplied QTDrawableMaker to return objects from a GraphicsImporter or a Movie.<DD><DL><DT><B>Parameters:</B><DD><CODE>url</CODE> - is the fully qualified url to the QuickTime media.<DD><CODE>maker</CODE> - specifies which type of QTDrawable object is returned when the factory imports a Graphics or Movie based media.<DT><B>Returns:</B><DD>a drawable object that can present the QT File<DT><B>Throws:</B><DD><CODE><A HREF="../../quicktime/std/StdQTException.html">StdQTException</A></CODE> - If the file is of a format that is not understood by QuickTime the function will throw a StdQTException with error code invalidMovie.<DD><CODE>java.lang.SecurityException</CODE> - is thrown if the file would violate security settings of an applet<DT><B>See Also: </B><DD><A HREF="../../quicktime/app/image/GraphicsImporterDrawer.html"><CODE>GraphicsImporterDrawer</CODE></A>, <A HREF="../../quicktime/app/players/QTPlayer.html"><CODE>QTPlayer</CODE></A>, <A HREF="../../quicktime/app/QTDrawableMaker.html"><CODE>QTDrawableMaker</CODE></A></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 CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="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="class-use/QTFactory.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="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="../../quicktime/app/QTDrawableMaker.html"><B>PREV CLASS</B></A> <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> <A HREF="QTFactory.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?