xsddoc/src/net/sf/xframe/xsddoc/util FileUtil.java,1.7,1.8

Kurt Riede <[email protected]> Sat, 26 Feb 2005 14:03:40 +0000
Newsgroups gmane.text.xml.xframe.xsddoc.devel
Message-ID <[email protected]>
Update of /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13544/src/net/sf/xframe/xsddoc/util

Modified Files:
	FileUtil.java 
Log Message:
new paramater: css (to provide an external CSS file)

Index: FileUtil.java
===================================================================
RCS file: /cvsroot/xframe/xsddoc/src/net/sf/xframe/xsddoc/util/FileUtil.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** FileUtil.java	13 Dec 2004 13:25:11 -0000	1.7
--- FileUtil.java	26 Feb 2005 14:03:38 -0000	1.8
***************
*** 22,25 ****
--- 22,26 ----
  
  import java.io.File;
+ import java.io.FileInputStream;
  import java.io.FileOutputStream;
  import java.io.IOException;
***************
*** 96,99 ****
--- 97,119 ----
  
      /**
+      * Copy a file.
+      *
+      * @param inFile source file name
+      * @param destFile destination file name
+      * @throws IOException if file cannot ne copied
+      */
+     public static void copyFile(final String inFile, final String destFile) throws IOException {
+         FileInputStream in = null;
+         try {
+             in = new FileInputStream(inFile);
+             copyFile(in, destFile);
+         } finally {
+             if (in != null) {
+                 in.close();
+             }
+         }
+     }
+ 
+     /**
       * Returns the location of a file relative to a base file.
       *



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click