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

📄 scriptcatcher.html

📁 Medi 这是一个基于Java的媒体文件归档器工具
💻 HTML
📖 第 1 页 / 共 2 页
字号:
public boolean <B>getRemoveFormat</B>()</PRE><DL><DD>Returns the property about removing formatting items (spaces and new-lines)<P><DD><DL><DT><B>Returns:</B><DD><CODE>true</CODE>: formatting items will be removed; <CODE>false</CODE>: formatting items will NOT be removed.</DL></DD></DL><HR><A NAME="loadScript(java.lang.String)"><!-- --></A><H3>loadScript</H3><PRE>public void <B>loadScript</B>(java.lang.String&nbsp;fileName)                throws java.io.FileNotFoundException</PRE><DL><DD>Loads a script whose path is in "fileName" string, divides it into commands and make them available.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fileName</CODE> - Path to the file to be processed.<DT><B>Throws:</B><DD><CODE>java.io.FileNotFoundException</CODE> - If "fileName" is not found</DL></DD></DL><HR><A NAME="saveScript(java.lang.String)"><!-- --></A><H3>saveScript</H3><PRE>public void <B>saveScript</B>(java.lang.String&nbsp;fileName)                throws java.io.IOException</PRE><DL><DD>Saves a script using saved command texts into "fileName".<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fileName</CODE> - Path to file to be saved.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If some I/O error occurs</DL></DD></DL><HR><A NAME="constructCommands(java.lang.String)"><!-- --></A><H3>constructCommands</H3><PRE>public void <B>constructCommands</B>(java.lang.String&nbsp;textScript)</PRE><DL><DD>Construct commands fromf a given string (textScript) instead of a file.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>textScript</CODE> - The string containing the script to be processed.</DL></DD></DL><HR><A NAME="removeSpaces(java.lang.String)"><!-- --></A><H3>removeSpaces</H3><PRE>public java.lang.String <B>removeSpaces</B>(java.lang.String&nbsp;cmdText)</PRE><DL><DD>Removes unuseful spaces, tabs and CRs from a command. WARNING! The text has to be a command WITHOUT command delimiter (default ;)!<P><DD><DL><DT><B>Parameters:</B><DD><CODE>cmdText</CODE> - String containing the command to be processed.<DT><B>Returns:</B><DD>A string "purged" of unuseful spaces.</DL></DD></DL><HR><A NAME="removeComments(java.lang.String)"><!-- --></A><H3>removeComments</H3><PRE>public java.lang.String <B>removeComments</B>(java.lang.String&nbsp;inStr)</PRE><DL><DD>Removes comments from a script (string inStr).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>inStr</CODE> - The string containing the string to be processed.<DT><B>Returns:</B><DD>A string which represents the script WITHOUT comments.</DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Removes all the commands.<P><DD><DL></DL></DD></DL><HR><A NAME="getNumCommands()"><!-- --></A><H3>getNumCommands</H3><PRE>public int <B>getNumCommands</B>()</PRE><DL><DD>Returns the number of commands.<P><DD><DL><DT><B>Returns:</B><DD>Number of commands contained.</DL></DD></DL><HR><A NAME="setNumCommands(int)"><!-- --></A><H3>setNumCommands</H3><PRE>public void <B>setNumCommands</B>(int&nbsp;numCommands)                    throws java.lang.IndexOutOfBoundsException</PRE><DL><DD>Sets the number of commands. There's no need to use it if you are loading a script file or using a script string. You need it ONLY if you are going to give commands one by one. All previous saved commands will be erased.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numCommands</CODE> - The number of commands to be generated.<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if <CODE>numCommands</CODE> is less than 1.</DL></DD></DL><HR><A NAME="getCommandText(int)"><!-- --></A><H3>getCommandText</H3><PRE>public java.lang.String <B>getCommandText</B>(int&nbsp;numCommand)                                throws java.lang.IndexOutOfBoundsException</PRE><DL><DD>Returns the command text of command <CODE>numCommand</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numCommand</CODE> - the number of the interested command, between <CODE>0</CODE> and <CODE>getNumCommands()-1</CODE><DT><B>Returns:</B><DD>The needed command text.<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If <CODE>numCommand</CODE> is not valid</DL></DD></DL><HR><A NAME="getCommands()"><!-- --></A><H3>getCommands</H3><PRE>public java.lang.String[] <B>getCommands</B>()</PRE><DL><DD>Returns the commands as an array.<P><DD><DL><DT><B>Returns:</B><DD>The commands as an array.</DL></DD></DL><HR><A NAME="getCommandList()"><!-- --></A><H3>getCommandList</H3><PRE>public java.util.ArrayList <B>getCommandList</B>()</PRE><DL><DD>Returns the commands as a list.<P><DD><DL><DT><B>Returns:</B><DD>The commands as a list.</DL></DD></DL><HR><A NAME="iterator()"><!-- --></A><H3>iterator</H3><PRE>public java.util.Iterator <B>iterator</B>()</PRE><DL><DD>Returns an iterator to iterate commands.<P><DD><DL><DT><B>Returns:</B><DD>The needed iterator.</DL></DD></DL><HR><A NAME="addCommand(java.lang.String)"><!-- --></A><H3>addCommand</H3><PRE>public void <B>addCommand</B>(java.lang.String&nbsp;value)</PRE><DL><DD>Adds a new command.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - The command to add.</DL></DD></DL><HR><A NAME="setCommandText(int, java.lang.String)"><!-- --></A><H3>setCommandText</H3><PRE>public void <B>setCommandText</B>(int&nbsp;numCommand,                           java.lang.String&nbsp;value)                    throws java.lang.IndexOutOfBoundsException</PRE><DL><DD>Sets the text for command <CODE>numCommand</CODE> with the string <CODE>value</CODE>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>numCommand</CODE> - The number of the interested command, between <CODE>0</CODE> and <CODE>getNumCommands()-1</CODE>.<DD><CODE>value</CODE> - The command text, WITHOUT command delimiter!<DT><B>Throws:</B><DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - If numCommand is not valid.</DL></DD></DL><HR><A NAME="setDivideCommandChar(char)"><!-- --></A><H3>setDivideCommandChar</H3><PRE>public void <B>setDivideCommandChar</B>(char&nbsp;inChar)</PRE><DL><DD>Sets the character who represents the end of a command.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>inChar</CODE> - The character which will be interpreted as a command delimiter.</DL></DD></DL><HR><A NAME="getDivideCommandChar()"><!-- --></A><H3>getDivideCommandChar</H3><PRE>public char <B>getDivideCommandChar</B>()</PRE><DL><DD>Returns the character who represents the end of a command.<P><DD><DL><DT><B>Returns:</B><DD>The needed character.</DL></DD></DL><HR><A NAME="setStringDelimiterChar(java.lang.Character)"><!-- --></A><H3>setStringDelimiterChar</H3><PRE>public void <B>setStringDelimiterChar</B>(java.lang.Character&nbsp;inChar)</PRE><DL><DD>Sets the character who represents the start/end of a string in the script.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>inChar</CODE> - The character which will be interpreted as a string delimiter.</DL></DD></DL><HR><A NAME="getStringDelimiterChar()"><!-- --></A><H3>getStringDelimiterChar</H3><PRE>public java.lang.Character <B>getStringDelimiterChar</B>()</PRE><DL><DD>Returns the character who represents the start/end of a string in the script.<P><DD><DL><DT><B>Returns:</B><DD>The needed character.</DL></DD></DL><HR><A NAME="setCommentDelimiter(java.lang.String)"><!-- --></A><H3>setCommentDelimiter</H3><PRE>public void <B>setCommentDelimiter</B>(java.lang.String&nbsp;inStr)</PRE><DL><DD>Sets the string who represents the start of a comment.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>inStr</CODE> - The string which will be interpreted as a comment delimiter.</DL></DD></DL><HR><A NAME="getCommentdelimiter()"><!-- --></A><H3>getCommentdelimiter</H3><PRE>public java.lang.String <B>getCommentdelimiter</B>()</PRE><DL><DD>Returns the string who represents the start of a comment.<P><DD><DL><DT><B>Returns:</B><DD>The needed string.</DL></DD></DL><HR><A NAME="textFile2String(java.lang.String)"><!-- --></A><H3>textFile2String</H3><PRE>public static java.lang.String <B>textFile2String</B>(java.lang.String&nbsp;fileName)                                        throws java.io.FileNotFoundException</PRE><DL><DD>Loads text file "fileName" and puts its content into a string.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>fileName</CODE> - Path to file to be loaded.<DT><B>Returns:</B><DD>The string representing the content of the text file.<DT><B>Throws:</B><DD><CODE>java.io.FileNotFoundException</CODE> - If the file "fileName" is not found.</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=3 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="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="../../javatools/util/Reflect.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javatools/util/StringUtils.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="ScriptCatcher.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&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;FIELD&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 + -