|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.util.Files
public class Files
Files.
| Method Summary | |
|---|---|
static void |
copyDirectoryTree(java.io.File srcdir,
java.io.File tgtdir)
Recursively copies all files from the specified source directory to the target directory. |
static void |
copyDirectoryTree(java.io.File srcdir,
java.io.File tgtdir,
java.io.FileFilter filter)
Recursively copies all files from the specified source directory to the target directory. |
static void |
copyFile(java.io.File source,
java.io.File target)
Copies to contents of the source file to the target file. |
static void |
copyStream(java.io.InputStream in,
java.io.OutputStream out)
Copies to contents of the input stream to the output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void copyDirectoryTree(java.io.File srcdir,
java.io.File tgtdir)
throws java.io.IOException
srcdir - The source directory.tgtdir - The target directory.
java.io.IOException - when an I/O error occurs.
public static void copyDirectoryTree(java.io.File srcdir,
java.io.File tgtdir,
java.io.FileFilter filter)
throws java.io.IOException
srcdir - The source directory.tgtdir - The target directory.filter - A filter which is used on the files of the srcdir to
decide whether it should be copied or not.
java.io.IOException - when an I/O error occurs.
public static void copyFile(java.io.File source,
java.io.File target)
throws java.io.IOException
java.io.IOException
public static void copyStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||