diff options
Diffstat (limited to '')
-rw-r--r-- | site/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/service/util/FileHelper.html | 835 |
1 files changed, 835 insertions, 0 deletions
diff --git a/site/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/service/util/FileHelper.html b/site/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/service/util/FileHelper.html new file mode 100644 index 0000000000..da98549b4e --- /dev/null +++ b/site/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/contribution/service/util/FileHelper.html @@ -0,0 +1,835 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.6.0_11) on Tue Jan 27 20:37:53 CST 2009 -->
+<TITLE>
+FileHelper
+</TITLE>
+
+<META NAME="date" CONTENT="2009-01-27">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+ if (location.href.indexOf('is-external=true') == -1) {
+ parent.document.title="FileHelper";
+ }
+}
+</SCRIPT>
+<NOSCRIPT>
+</NOSCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+<HR>
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+ <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="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">
+ PREV CLASS
+ <A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.RegExpFilter.html" title="class in org.apache.tuscany.sca.contribution.service.util"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+ <A HREF="../../../../../../../index.html?org/apache/tuscany/sca/contribution/service/util/FileHelper.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="FileHelper.html" target="_top"><B>NO FRAMES</B></A>
+ <SCRIPT type="text/javascript">
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+ }
+ //-->
+</SCRIPT>
+<NOSCRIPT>
+ <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+ SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<!-- ======== START OF CLASS DATA ======== -->
+<H2>
+<FONT SIZE="-1">
+org.apache.tuscany.sca.contribution.service.util</FONT>
+<BR>
+Class FileHelper</H2>
+<PRE>
+java.lang.Object
+ <IMG SRC="../../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.tuscany.sca.contribution.service.util.FileHelper</B>
+</PRE>
+<HR>
+<DL>
+<DT><PRE>public class <B>FileHelper</B><DT>extends java.lang.Object</DL>
+</PRE>
+
+<P>
+<HR>
+
+<P>
+<!-- ======== NESTED CLASS SUMMARY ======== -->
+
+<A NAME="nested_class_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Nested Class Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static class</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.RegExpFilter.html" title="class in org.apache.tuscany.sca.contribution.service.util">FileHelper.RegExpFilter</A></B></CODE>
+
+<BR>
+ A regular-expression based resource filter</TD>
+</TR>
+</TABLE>
+
+<!-- ======== CONSTRUCTOR SUMMARY ======== -->
+
+<A NAME="constructor_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Constructor Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#FileHelper()">FileHelper</A></B>()</CODE>
+
+<BR>
+ </TD>
+</TR>
+</TABLE>
+
+<!-- ========== METHOD SUMMARY =========== -->
+
+<A NAME="method_summary"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
+<B>Method Summary</B></FONT></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#cleanDirectory(java.io.File)">cleanDirectory</A></B>(java.io.File directory)</CODE>
+
+<BR>
+ Clean a directory without deleting it.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyDirectory(java.io.File, java.io.File)">copyDirectory</A></B>(java.io.File srcDir,
+ java.io.File destDir)</CODE>
+
+<BR>
+ Copies a whole directory to a new location preserving the file dates.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyDirectory(java.io.File, java.io.File, boolean)">copyDirectory</A></B>(java.io.File srcDir,
+ java.io.File destDir,
+ boolean preserveFileDate)</CODE>
+
+<BR>
+ Copies a whole directory to a new location.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyDirectoryToDirectory(java.io.File, java.io.File)">copyDirectoryToDirectory</A></B>(java.io.File srcDir,
+ java.io.File destDir)</CODE>
+
+<BR>
+ Copies a directory to within another directory preserving the file dates.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyFile(java.io.File, java.io.File)">copyFile</A></B>(java.io.File srcFile,
+ java.io.File destFile)</CODE>
+
+<BR>
+ Copies a file to a new location preserving the file date.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyFile(java.io.File, java.io.File, boolean)">copyFile</A></B>(java.io.File srcFile,
+ java.io.File destFile,
+ boolean preserveFileDate)</CODE>
+
+<BR>
+ Copies a file to a new location.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyFileToDirectory(java.io.File, java.io.File)">copyFileToDirectory</A></B>(java.io.File srcFile,
+ java.io.File destDir)</CODE>
+
+<BR>
+ Copies a file to a directory preserving the file date.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyFileToDirectory(java.io.File, java.io.File, boolean)">copyFileToDirectory</A></B>(java.io.File srcFile,
+ java.io.File destDir,
+ boolean preserveFileDate)</CODE>
+
+<BR>
+ Copies a file to a directory optionally preserving the file date.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#deleteDirectory(java.io.File)">deleteDirectory</A></B>(java.io.File directory)</CODE>
+
+<BR>
+ Recursively delete a directory.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#forceDelete(java.io.File)">forceDelete</A></B>(java.io.File file)</CODE>
+
+<BR>
+ Delete a file.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#forceDeleteOnExit(java.io.File)">forceDeleteOnExit</A></B>(java.io.File file)</CODE>
+
+<BR>
+ Schedule a file to be deleted when JVM exits.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#forceMkdir(java.io.File)">forceMkdir</A></B>(java.io.File directory)</CODE>
+
+<BR>
+ Make a directory, including any necessary but nonexistent parent + directories.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#getExtension(java.lang.String)">getExtension</A></B>(java.lang.String filename)</CODE>
+
+<BR>
+ Gets the extension of a filename.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static java.io.FileFilter</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#getFileFilter(java.lang.String, boolean)">getFileFilter</A></B>(java.lang.String regExp,
+ boolean ignoreCase)</CODE>
+
+<BR>
+ </TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static java.lang.String</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#getName(java.lang.String)">getName</A></B>(java.lang.String fileName)</CODE>
+
+<BR>
+ Gets the name minus the path from a full filename.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#indexOfExtension(java.lang.String)">indexOfExtension</A></B>(java.lang.String filename)</CODE>
+
+<BR>
+ Returns the index of the last extension separator character, which is a + dot.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static int</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#indexOfLastSeparator(java.lang.String)">indexOfLastSeparator</A></B>(java.lang.String filename)</CODE>
+
+<BR>
+ Returns the index of the last directory separator character.</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>static java.io.File</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#toFile(java.net.URL)">toFile</A></B>(java.net.URL url)</CODE>
+
+<BR>
+ Convert from a <code>URL</code> to a <code>File</code>.</TD>
+</TR>
+</TABLE>
+ <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
+<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
+</TR>
+</TABLE>
+
+<P>
+
+<!-- ========= CONSTRUCTOR DETAIL ======== -->
+
+<A NAME="constructor_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Constructor Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="FileHelper()"><!-- --></A><H3>
+FileHelper</H3>
+<PRE>
+public <B>FileHelper</B>()</PRE>
+<DL>
+</DL>
+
+<!-- ============ METHOD DETAIL ========== -->
+
+<A NAME="method_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Method Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="indexOfLastSeparator(java.lang.String)"><!-- --></A><H3>
+indexOfLastSeparator</H3>
+<PRE>
+public static int <B>indexOfLastSeparator</B>(java.lang.String filename)</PRE>
+<DL>
+<DD>Returns the index of the last directory separator character. + <p> + This method will handle a file in either Unix or Windows format. The + position of the last forward or backslash is returned. + <p> + The output will be the same irrespective of the machine that the code is + running on.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the filename to find the last path separator in, null + returns -1
+<DT><B>Returns:</B><DD>the index of the last separator character, or -1 if there is no + such character</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="indexOfExtension(java.lang.String)"><!-- --></A><H3>
+indexOfExtension</H3>
+<PRE>
+public static int <B>indexOfExtension</B>(java.lang.String filename)</PRE>
+<DL>
+<DD>Returns the index of the last extension separator character, which is a + dot. + <p> + This method also checks that there is no directory separator after the + last dot. To do this it uses <A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#indexOfLastSeparator(java.lang.String)"><CODE>indexOfLastSeparator(String)</CODE></A> which + will handle a file in either Unix or Windows format. + <p> + The output will be the same irrespective of the machine that the code is + running on.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the filename to find the last path separator in, null + returns -1
+<DT><B>Returns:</B><DD>the index of the last separator character, or -1 if there is no + such character</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getName(java.lang.String)"><!-- --></A><H3>
+getName</H3>
+<PRE>
+public static java.lang.String <B>getName</B>(java.lang.String fileName)</PRE>
+<DL>
+<DD>Gets the name minus the path from a full filename. + <p> + This method will handle a file in either Unix or Windows format. The text + after the last forward or backslash is returned. + + <pre> + a/b/c.txt --> c.txt + a.txt --> a.txt + a/b/c --> c + a/b/c/ --> "" + </pre> + + <p> + The output will be the same irrespective of the machine that the code is + running on.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>fileName</CODE> - the filename to query, null returns null
+<DT><B>Returns:</B><DD>the name of the file without the path, or an empty string if none + exists</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getExtension(java.lang.String)"><!-- --></A><H3>
+getExtension</H3>
+<PRE>
+public static java.lang.String <B>getExtension</B>(java.lang.String filename)</PRE>
+<DL>
+<DD>Gets the extension of a filename. + <p> + This method returns the textual part of the filename after the last dot. + There must be no directory separator after the dot. + + <pre> + foo.txt --> "txt" + a/b/c.jpg --> "jpg" + a/b.txt/c --> "" + a/b/c --> "" + </pre> + + <p> + The output will be the same irrespective of the machine that the code is + running on.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the filename to retrieve the extension of.
+<DT><B>Returns:</B><DD>the extension of the file or an empty string if none exists.</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="forceMkdir(java.io.File)"><!-- --></A><H3>
+forceMkdir</H3>
+<PRE>
+public static void <B>forceMkdir</B>(java.io.File directory)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Make a directory, including any necessary but nonexistent parent + directories. If there already exists a file with specified name or the + directory cannot be created then an exception is thrown.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>directory</CODE> - directory to create, not null
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if the directory is null
+<DD><CODE>java.io.IOException</CODE> - if the directory cannot be created</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="forceDelete(java.io.File)"><!-- --></A><H3>
+forceDelete</H3>
+<PRE>
+public static void <B>forceDelete</B>(java.io.File file)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Delete a file. If file is a directory, delete it and all sub-directories. + <p> + The difference between File.delete() and this method are: + <ul> + <li>A directory to be deleted does not have to be empty.</li> + <li>You get exceptions when a file or directory cannot be deleted. + (java.io.File methods returns a boolean)</li> + </ul>
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>file</CODE> - file or directory to delete, not null
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if the directory is null
+<DD><CODE>java.io.IOException</CODE> - in case deletion is unsuccessful</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="toFile(java.net.URL)"><!-- --></A><H3>
+toFile</H3>
+<PRE>
+public static java.io.File <B>toFile</B>(java.net.URL url)</PRE>
+<DL>
+<DD>Convert from a <code>URL</code> to a <code>File</code>. + <p> + From version 1.1 this method will decode the URL. Syntax such as + <code>file:///my%20docs/file.txt</code> will be correctly decoded to + <code>/my docs/file.txt</code>.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>url</CODE> - the file URL to convert, null returns null
+<DT><B>Returns:</B><DD>the equivalent <code>File</code> object, or <code>null</code> + if the URL's protocol is not <code>file</code>
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the file is incorrectly encoded</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="getFileFilter(java.lang.String, boolean)"><!-- --></A><H3>
+getFileFilter</H3>
+<PRE>
+public static java.io.FileFilter <B>getFileFilter</B>(java.lang.String regExp,
+ boolean ignoreCase)</PRE>
+<DL>
+<DD><DL>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="cleanDirectory(java.io.File)"><!-- --></A><H3>
+cleanDirectory</H3>
+<PRE>
+public static void <B>cleanDirectory</B>(java.io.File directory)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Clean a directory without deleting it.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>directory</CODE> - directory to clean
+<DT><B>Throws:</B>
+<DD><CODE>java.io.IOException</CODE> - in case cleaning is unsuccessful</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copyDirectory(java.io.File, java.io.File)"><!-- --></A><H3>
+copyDirectory</H3>
+<PRE>
+public static void <B>copyDirectory</B>(java.io.File srcDir,
+ java.io.File destDir)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Copies a whole directory to a new location preserving the file dates. + <p> + This method copies the specified directory and all its child directories + and files to the specified destination. The destination is the new + location and name of the directory. + <p> + The destination directory is created if it does not exist. If the + destination directory did exist, then this method merges the source with + the destination, with the source taking precedence.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>srcDir</CODE> - an existing directory to copy, must not be + <code>null</code><DD><CODE>destDir</CODE> - the new directory, must not be <code>null</code>
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if source or destination is + <code>null</code>
+<DD><CODE>java.io.IOException</CODE> - if source or destination is invalid
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs during copying<DT><B>Since:</B></DT>
+ <DD>Commons IO 1.1</DD>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copyDirectory(java.io.File, java.io.File, boolean)"><!-- --></A><H3>
+copyDirectory</H3>
+<PRE>
+public static void <B>copyDirectory</B>(java.io.File srcDir,
+ java.io.File destDir,
+ boolean preserveFileDate)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Copies a whole directory to a new location. + <p> + This method copies the contents of the specified source directory to + within the specified destination directory. + <p> + The destination directory is created if it does not exist. If the + destination directory did exist, then this method merges the source with + the destination, with the source taking precedence.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>srcDir</CODE> - an existing directory to copy, must not be + <code>null</code><DD><CODE>destDir</CODE> - the new directory, must not be <code>null</code><DD><CODE>preserveFileDate</CODE> - true if the file date of the copy should be the + same as the original
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if source or destination is + <code>null</code>
+<DD><CODE>java.io.IOException</CODE> - if source or destination is invalid
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs during copying<DT><B>Since:</B></DT>
+ <DD>Commons IO 1.1</DD>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copyDirectoryToDirectory(java.io.File, java.io.File)"><!-- --></A><H3>
+copyDirectoryToDirectory</H3>
+<PRE>
+public static void <B>copyDirectoryToDirectory</B>(java.io.File srcDir,
+ java.io.File destDir)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Copies a directory to within another directory preserving the file dates. + <p> + This method copies the source directory and all its contents to a + directory of the same name in the specified destination directory. + <p> + The destination directory is created if it does not exist. If the + destination directory did exist, then this method merges the source with + the destination, with the source taking precedence.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>srcDir</CODE> - an existing directory to copy, must not be + <code>null</code><DD><CODE>destDir</CODE> - the directory to place the copy in, must not be + <code>null</code>
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if source or destination is + <code>null</code>
+<DD><CODE>java.io.IOException</CODE> - if source or destination is invalid
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs during copying<DT><B>Since:</B></DT>
+ <DD>Commons IO 1.2</DD>
+</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copyFile(java.io.File, java.io.File)"><!-- --></A><H3>
+copyFile</H3>
+<PRE>
+public static void <B>copyFile</B>(java.io.File srcFile,
+ java.io.File destFile)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Copies a file to a new location preserving the file date. + <p> + This method copies the contents of the specified source file to the + specified destination file. The directory holding the destination file is + created if it does not exist. If the destination file exists, then this + method will overwrite it.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>srcFile</CODE> - an existing file to copy, must not be <code>null</code><DD><CODE>destFile</CODE> - the new file, must not be <code>null</code>
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if source or destination is + <code>null</code>
+<DD><CODE>java.io.IOException</CODE> - if source or destination is invalid
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs during copying<DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyFileToDirectory(java.io.File, java.io.File)"><CODE>copyFileToDirectory(File, File)</CODE></A></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copyFile(java.io.File, java.io.File, boolean)"><!-- --></A><H3>
+copyFile</H3>
+<PRE>
+public static void <B>copyFile</B>(java.io.File srcFile,
+ java.io.File destFile,
+ boolean preserveFileDate)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Copies a file to a new location. + <p> + This method copies the contents of the specified source file to the + specified destination file. The directory holding the destination file is + created if it does not exist. If the destination file exists, then this + method will overwrite it.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>srcFile</CODE> - an existing file to copy, must not be <code>null</code><DD><CODE>destFile</CODE> - the new file, must not be <code>null</code><DD><CODE>preserveFileDate</CODE> - true if the file date of the copy should be the + same as the original
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if source or destination is + <code>null</code>
+<DD><CODE>java.io.IOException</CODE> - if source or destination is invalid
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs during copying<DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyFileToDirectory(java.io.File, java.io.File, boolean)"><CODE>copyFileToDirectory(File, File, boolean)</CODE></A></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copyFileToDirectory(java.io.File, java.io.File)"><!-- --></A><H3>
+copyFileToDirectory</H3>
+<PRE>
+public static void <B>copyFileToDirectory</B>(java.io.File srcFile,
+ java.io.File destDir)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Copies a file to a directory preserving the file date. + <p> + This method copies the contents of the specified source file to a file of + the same name in the specified destination directory. The destination + directory is created if it does not exist. If the destination file + exists, then this method will overwrite it.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>srcFile</CODE> - an existing file to copy, must not be <code>null</code><DD><CODE>destDir</CODE> - the directory to place the copy in, must not be + <code>null</code>
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if source or destination is null
+<DD><CODE>java.io.IOException</CODE> - if source or destination is invalid
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs during copying<DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyFile(java.io.File, java.io.File, boolean)"><CODE>copyFile(File, File, boolean)</CODE></A></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="copyFileToDirectory(java.io.File, java.io.File, boolean)"><!-- --></A><H3>
+copyFileToDirectory</H3>
+<PRE>
+public static void <B>copyFileToDirectory</B>(java.io.File srcFile,
+ java.io.File destDir,
+ boolean preserveFileDate)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Copies a file to a directory optionally preserving the file date. + <p> + This method copies the contents of the specified source file to a file of + the same name in the specified destination directory. The destination + directory is created if it does not exist. If the destination file + exists, then this method will overwrite it.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>srcFile</CODE> - an existing file to copy, must not be <code>null</code><DD><CODE>destDir</CODE> - the directory to place the copy in, must not be + <code>null</code><DD><CODE>preserveFileDate</CODE> - true if the file date of the copy should be the + same as the original
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if source or destination is + <code>null</code>
+<DD><CODE>java.io.IOException</CODE> - if source or destination is invalid
+<DD><CODE>java.io.IOException</CODE> - if an IO error occurs during copying<DT><B>Since:</B></DT>
+ <DD>Commons IO 1.3</DD>
+<DT><B>See Also:</B><DD><A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.html#copyFile(java.io.File, java.io.File, boolean)"><CODE>copyFile(File, File, boolean)</CODE></A></DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="deleteDirectory(java.io.File)"><!-- --></A><H3>
+deleteDirectory</H3>
+<PRE>
+public static void <B>deleteDirectory</B>(java.io.File directory)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Recursively delete a directory.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>directory</CODE> - directory to delete
+<DT><B>Throws:</B>
+<DD><CODE>java.io.IOException</CODE> - in case deletion is unsuccessful</DL>
+</DD>
+</DL>
+<HR>
+
+<A NAME="forceDeleteOnExit(java.io.File)"><!-- --></A><H3>
+forceDeleteOnExit</H3>
+<PRE>
+public static void <B>forceDeleteOnExit</B>(java.io.File file)
+ throws java.io.IOException</PRE>
+<DL>
+<DD>Schedule a file to be deleted when JVM exits. If file is directory delete + it and all sub-directories.
+<P>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>file</CODE> - file or directory to delete, must not be <code>null</code>
+<DT><B>Throws:</B>
+<DD><CODE>java.lang.NullPointerException</CODE> - if the file is <code>null</code>
+<DD><CODE>java.io.IOException</CODE> - in case deletion is unsuccessful</DL>
+</DD>
+</DL>
+<!-- ========= END OF CLASS DATA ========= -->
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+ <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="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">
+ PREV CLASS
+ <A HREF="../../../../../../../org/apache/tuscany/sca/contribution/service/util/FileHelper.RegExpFilter.html" title="class in org.apache.tuscany.sca.contribution.service.util"><B>NEXT CLASS</B></A></FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+ <A HREF="../../../../../../../index.html?org/apache/tuscany/sca/contribution/service/util/FileHelper.html" target="_top"><B>FRAMES</B></A>
+ <A HREF="FileHelper.html" target="_top"><B>NO FRAMES</B></A>
+ <SCRIPT type="text/javascript">
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
+ }
+ //-->
+</SCRIPT>
+<NOSCRIPT>
+ <A HREF="../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+
+</FONT></TD>
+</TR>
+<TR>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+ SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
+<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
+DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>
|