qtfile.html

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

HTML
831
字号
checkSecurity</H3><PRE>public static void <B>checkSecurity</B>(java.lang.String&nbsp;fileName,                                 int&nbsp;permission)</PRE><DL><DD>This method will assume that the incoming path is a full path specification for a file and will check the security manager settings to see if the current security settings allow this file to be read from or written to. If the  requested security access is dissallowed a SecurityException is thrown.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fileName</CODE> - a full path file specification path<DD><CODE>permission</CODE> - the requested permission.</DL></DD></DL><HR><A NAME="resolveAlias(quicktime.io.AliasHandle)"><!-- --></A><H3>resolveAlias</H3><PRE>public static <A HREF="../../quicktime/io/QTFile.html">QTFile</A> <B>resolveAlias</B>(<A HREF="../../quicktime/io/AliasHandle.html">AliasHandle</A>&nbsp;alias)                           throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method will take an alias and will resolve it, returning the full path name of the resolved file. You must have  read permission to the resultant file path or a SecurityException will be thrown. <BR><BR><b>QuickTime::ResolveAlias</b><BR><BR><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>alias</CODE> - the alias to resolve<DT><B>Returns:</B><DD>the QTFile object of the resolved alias</DL></DD></DL><HR><A NAME="standardGetFilePreview(int[])"><!-- --></A><H3>standardGetFilePreview</H3><PRE>public static <A HREF="../../quicktime/io/QTFile.html">QTFile</A> <B>standardGetFilePreview</B>(int[]&nbsp;fileTypes)                                     throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Present a standard open file panel to the user to retrieve a file.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.4b.htm#iqMovi1138">QuickTime::StandardGetFilePreview()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fileTypes</CODE> - the particular file types you want the user to see. No fileTypes assumes all files. Max of 4.<DT><B>Returns:</B><DD>The file object.</DL></DD></DL><HR><A NAME="getFSSpec(boolean, int)"><!-- --></A><H3>getFSSpec</H3><PRE>public final byte[] <B>getFSSpec</B>(boolean&nbsp;fileExists,                              int&nbsp;permissions)                       throws <A HREF="../../quicktime/io/QTIOException.html">QTIOException</A></PRE><DL><DD>Returns the byte array containing the fsspec.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - if true then the file must exist or a fnfError is thrown otherwise it is not required that the file exist<DD><CODE>permissions</CODE> - you must specify whether the file will be reading or writing.<DT><B>Returns:</B><DD>the byte array</DL></DD></DL><HR><A NAME="convertToMovieFile(quicktime.io.QTFile, int, int)"><!-- --></A><H3>convertToMovieFile</H3><PRE>public void <B>convertToMovieFile</B>(<A HREF="../../quicktime/io/QTFile.html">QTFile</A>&nbsp;outputFile,                               int&nbsp;fCreator,                               int&nbsp;inFlags)                        throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method takes a specified file and converts it to a movie file.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refMovieToolbox.38.htm#pgfId=13645">QuickTime::ConvertFileToMovieFile()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>outputFie</CODE> - the destination movie file.<DD><CODE>fCreator</CODE> - Specifies the creator value for the file if it is a new one.<DD><CODE>inFlags</CODE> - Controls movie file conversion flags.</DL></DD></DL><HR><A NAME="convertToMovieFile(quicktime.io.QTFile, int, int, quicktime.std.qtcomponents.MovieImporter)"><!-- --></A><H3>convertToMovieFile</H3><PRE>public void <B>convertToMovieFile</B>(<A HREF="../../quicktime/io/QTFile.html">QTFile</A>&nbsp;outputFile,                               int&nbsp;fCreator,                               int&nbsp;inFlags,                               <A HREF="../../quicktime/std/qtcomponents/MovieImporter.html">MovieImporter</A>&nbsp;mic)                        throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method takes a specified file and converts it to a movie file. The specified files must be full paths or a fnfErr exception will be thrown	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refMovieToolbox.38.htm#pgfId=13645">QuickTime::ConvertFileToMovieFile()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>outputFile</CODE> - the destination movie file.<DD><CODE>fCreator</CODE> - Specifies the creator value for the file if it is a new one.<DD><CODE>inFlags</CODE> - Controls movie file conversion flags.<DD><CODE>mec</CODE> - Specifies the movie export component if used for translation, null otherwise.</DL></DD></DL><HR><A NAME="convertToMovieFile(quicktime.io.QTFile, int, int, quicktime.std.qtcomponents.MovieImporter, quicktime.std.movies.MovieProgress)"><!-- --></A><H3>convertToMovieFile</H3><PRE>public void <B>convertToMovieFile</B>(<A HREF="../../quicktime/io/QTFile.html">QTFile</A>&nbsp;outputFile,                               int&nbsp;fCreator,                               int&nbsp;flags,                               <A HREF="../../quicktime/std/qtcomponents/MovieImporter.html">MovieImporter</A>&nbsp;mic,                               <A HREF="../../quicktime/std/movies/MovieProgress.html">MovieProgress</A>&nbsp;mp)                        throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method takes a specified file and converts it to a movie file. The specified files must be full paths or a fnfErr exception will be thrown	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/refMovieToolbox.38.htm#pgfId=13645">QuickTime::ConvertFileToMovieFile()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>outputFile</CODE> - the destination movie file.<DD><CODE>fCreator</CODE> - Specifies the creator value for the file if it is a new one.<DD><CODE>flags</CODE> - Controls movie file conversion flags.<DD><CODE>mec</CODE> - Specifies the movie export component if used for translation, null otherwise.<DD><CODE>mp</CODE> - Specifies the movie progress object or null otherwise.</DL></DD></DL><HR><A NAME="createMovieFile(int, int)"><!-- --></A><H3>createMovieFile</H3><PRE>public void <B>createMovieFile</B>(int&nbsp;fCreator,                            int&nbsp;flags)                     throws <A HREF="../../quicktime/io/QTIOException.html">QTIOException</A></PRE><DL><DD>Creates a file as specified by this QTFile. This call will <b>not</b> open the created movie file.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.26.htm#iqMovi376">QuickTime::CreateMovieFile()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pathName</CODE> - specifies the complete pathName of the file that is to be created.<DD><CODE>fCreator</CODE> - Specifies the creator of the file.<DD><CODE>flags</CODE> - Specifies the behaviour when creating the file.</DL></DD></DL><HR><A NAME="createShortcutMovieFile(int, int, int, quicktime.std.movies.media.DataRef)"><!-- --></A><H3>createShortcutMovieFile</H3><PRE>public void <B>createShortcutMovieFile</B>(int&nbsp;creator,                                    int&nbsp;scriptTag,                                    int&nbsp;createMovieFileFlags,                                    <A HREF="../../quicktime/std/movies/media/DataRef.html">DataRef</A>&nbsp;targetDataRef)                             throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates a short cut movie file as specified by this QTFile. A Shortcut movie just contains a data reference which refers to another movie.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=16883">QuickTime::CreateShortcutMovieFile()</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pathName</CODE> - specifies the complete pathName of the file that is to be created.<DD><CODE>creator</CODE> - Specifies the creator of the file.<DD><CODE>scriptTag</CODE> - the system script identifier<DD><CODE>createMovieFileFlags</CODE> - Specifies the behaviour when creating the file.<DD><CODE>targetDataRef</CODE> - this is a data reference to the location of the data that is referred to by  the resultant movie that this call creates.</DL></DD></DL><HR><A NAME="newAlias(boolean)"><!-- --></A><H3>newAlias</H3><PRE>public <A HREF="../../quicktime/io/AliasHandle.html">AliasHandle</A> <B>newAlias</B>(boolean&nbsp;minimal)                     throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates an alias record that describes the specified target.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/REF/ref_undocfuncs.htm#pgfId=17225">QuickTime::QTNewAlias</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>minimal</CODE> - if true then the alias is a minimal alias.<DT><B>Returns:</B><DD>an AliasHandle that represents the QTFile</DL></DD></DL><HR><A NAME="relativeAlias(quicktime.io.QTFile, boolean)"><!-- --></A><H3>relativeAlias</H3><PRE>public <A HREF="../../quicktime/io/AliasHandle.html">AliasHandle</A> <B>relativeAlias</B>(<A HREF="../../quicktime/io/QTFile.html">QTFile</A>&nbsp;relativeToFile,                                 boolean&nbsp;minimal)                          throws <A HREF="../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creates a relative alias record that describes the specified target with respect to the given file.</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>relativeToFile</CODE> - the file from which the target is relative to.<DD><CODE>minimal</CODE> - if true then the alias is a minimal alias.<DT><B>Returns:</B><DD>an AliasHandle that represents the QTFile</DL></DD></DL><HR><A NAME="resolveAlias(boolean)"><!-- --></A><H3>resolveAlias</H3><PRE>public <A HREF="../../quicktime/io/QTFile.html">QTFile</A> <B>resolveAlias</B>(boolean&nbsp;resolveAliasChains)                    throws <A HREF="../../quicktime/io/QTIOException.html">QTIOException</A></PRE><DL><DD>Returns the target FSSpec passed in <br><br><b>QuickTime::ResolveAliasFile</b><br><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>resolveAliasChains</CODE> - set to true if all aliases to be resolved in a chain.</DL></DD></DL><HR><A NAME="delete()"><!-- --></A><H3>delete</H3><PRE>public boolean <B>delete</B>()</PRE><DL><DD>This method deletes a movie file.	 <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqMovieToolbox.26.htm#iqMovi385">QuickTime::DeleteMovieFile()</a> </b><BR><BR><DT><B>Overrides:</B><DD><CODE>delete</CODE> in class <CODE>java.io.File</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if the file is successfully deleted;             <code>false</code> otherwise.</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>&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/QTFile.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/io/OpenMovieFile.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="QTFile.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></BODY></HTML>

⌨️ 快捷键说明

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