|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.File
org.knopflerfish.framework.FileTree
public class FileTree
FileTree is extension to java.io.File that handles copying and deletion of complete file structures.
| Field Summary |
|---|
| Fields inherited from class java.io.File |
|---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
| Constructor Summary | |
|---|---|
FileTree(java.io.File file,
java.lang.String name)
Creates a new Filetree instance by a pathname string to an existing File or FileTree. |
|
FileTree(java.lang.String name)
Creates a new FileTree instance based on given pathname string. |
|
FileTree(java.lang.String n1,
java.lang.String n2)
Creates a new FileTree instance from a parent pathname string and a child pathname string. |
|
| Method Summary | |
|---|---|
void |
copyTo(java.io.File copyFile)
Copy this file tree to specified destination. |
boolean |
delete()
Delete this file tree from disk. |
| Methods inherited from class java.io.File |
|---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileTree(java.lang.String name)
public FileTree(java.io.File file,
java.lang.String name)
public FileTree(java.lang.String n1,
java.lang.String n2)
| Method Detail |
|---|
public void copyTo(java.io.File copyFile)
throws java.io.IOException
copyFile - File object representing the destination.
java.io.IOException - if copy failed. Will leave destination
in an unspecified state.public boolean delete()
delete in class java.io.File
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||