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

📄 filefilter.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<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 =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="prefix"><!-- --></A><H3>prefix</H3><PRE>protected java.lang.String <B>prefix</B></PRE><DL><DD>The prefix of the file to be matched. The value is set by the extractPrefixAndSuffix method. It should always have a value - even if it is just an empty string.</DL><HR><A NAME="suffix"><!-- --></A><H3>suffix</H3><PRE>protected java.lang.String <B>suffix</B></PRE><DL><DD>The suffix of the file to be matched. The value is set by the extractPrefixAndSuffix method.</DL><HR><A NAME="testSuffix"><!-- --></A><H3>testSuffix</H3><PRE>protected boolean <B>testSuffix</B></PRE><DL><DD>If true (the default) then both the suffix and prefix are used to match the filename. If false then only the prefix is matched.</DL><!-- ========= 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="FileFilter(boolean)"><!-- --></A><H3>FileFilter</H3><PRE>public <B>FileFilter</B>(boolean&nbsp;testSuffix)</PRE><DL><DD>Create the filter with the flag set (if true - the default) which will test the suffix and prefix or if false it will test the prefix only</DL><HR><A NAME="FileFilter()"><!-- --></A><H3>FileFilter</H3><PRE>public <B>FileFilter</B>()</PRE><DL><DD>Create the filter with the default setting of testing both prefix and suffix</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="extractPrefixAndSuffix(java.lang.String)"><!-- --></A><H3>extractPrefixAndSuffix</H3><PRE>protected void <B>extractPrefixAndSuffix</B>(java.lang.String&nbsp;fName)</PRE><DL><DD>It dissects the incoming fName (the name of a file) into a prefix which are all the characters of the fileName that precede the last occurance of a number in the filename and a suffix the extracts the characters that immediately follow the last occurance of a number in the fName. It stores the result of these into the instance variables prefix and suffix respectively. <P> Subclasses can overwrite this to produce their own semantic for extracting a prefix and suffix - they need to ensure that the instance variables are set with the appropriate values.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>fName</CODE> - the name of the file that is to be disected.</DL></DD></DL><HR><A NAME="testFrameNumber(java.lang.String)"><!-- --></A><H3>testFrameNumber</H3><PRE>protected int <B>testFrameNumber</B>(java.lang.String&nbsp;fName)                       throws java.lang.NumberFormatException</PRE><DL><DD>This method tests the frameNumber portion of the filename. If this string does NOT have a number it will throw a NumberFormatException. It returns the resulting number.<DD><DL></DL></DD></DL><HR><A NAME="accept(java.io.File, java.lang.String)"><!-- --></A><H3>accept</H3><PRE>public boolean <B>accept</B>(java.io.File&nbsp;dir,                      java.lang.String&nbsp;fName)</PRE><DL><DD>This method is used by the createSequence call to filter the files found in the supplied directory. It returns true if the filename matches the conditions (prefix and suffix are found in the file and between these there is a number). Both prefix and suffix can be empty but the frame number is required.<DD><DL><DT><B>Specified by: </B><DD><CODE>accept</CODE> in interface <CODE>java.io.FilenameFilter</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dir</CODE> - the directory being filtered<DD><CODE>fName</CODE> - the name of a file found within this directory<DT><B>Returns:</B><DD>true if the file matches the conditions otherwise false</DL></DD></DL><HR><A NAME="postProcess(java.lang.String[])"><!-- --></A><H3>postProcess</H3><PRE>protected java.lang.String[] <B>postProcess</B>(java.lang.String[]&nbsp;matchedFiles)</PRE><DL><DD>This method is called after the directory has been filtered. The incoming array contains both the file list (files found within the directory that have been accepted as a match) and the order of the files in this list is the order that the files will be added to the sequence. The method can alter this array (or return a new one). The returned array should contain no null values, and the order of the filenames in the returned array is the order that the files will be added to the sequence. <P> The default implementation returns the list as is.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>the</CODE> - matched list of files<DT><B>Returns:</B><DD>the ordered list of files that the sequence will be created from.</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/FileFilter.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/image/DSequenceFromMemory.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/image/GraphicsImporterDrawer.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="FileFilter.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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -