org.knopflerfish.framework.FileTree Class Reference

List of all members.


Detailed Description

FileTree is extension to java.io.File that handles copying and deletion of complete file structures.

Author:
Jan Stein

Definition at line 46 of file FileTree.java.


Public Member Functions

 FileTree (String name)
 Creates a new FileTree instance based on given pathname string.
 FileTree (File file, String name)
 Creates a new Filetree instance by a pathname string to an existing File or FileTree.
 FileTree (String n1, String n2)
 Creates a new FileTree instance from a parent pathname string and a child pathname string.
void copyTo (File copyFile) throws IOException
 Copy this file tree to specified destination.
boolean delete ()
 Delete this file tree from disk.

Member Function Documentation

void org.knopflerfish.framework.FileTree.copyTo ( File  copyFile  )  throws IOException

Copy this file tree to specified destination.

Parameters:
copyFile File object representing the destination.
Exceptions:
IOException if copy failed. Will leave destination in an unspecified state.

Definition at line 82 of file FileTree.java.

References org.knopflerfish.framework.FileTree.FileTree().

boolean org.knopflerfish.framework.FileTree.delete (  ) 

Delete this file tree from disk.

Returns:
True if operation completed okay.

Definition at line 124 of file FileTree.java.

References org.knopflerfish.framework.FileTree.FileTree().

Referenced by org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl.BundleStorageImpl(), org.knopflerfish.framework.bundlestorage.file.BundleStorageImpl.insertBundleJar(), and org.knopflerfish.framework.bundlestorage.file.Archive.purge().


The documentation for this class was generated from the following file:
Generated on Mon Jan 11 21:19:19 2010 for OpenMobileIS by  doxygen 1.5.4