|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileSystemHelper
Method Summary | |
---|---|
void |
close()
close |
void |
copyFrom(File directory)
copyFrom |
void |
copyFrom(File directory,
FileFilter fileFilter)
copyFrom |
long |
getChecksum(String pathToResource)
Given a path to a resource in this file system, return a checksum on that resource's content. |
File |
getRootDirectory()
getRootDirectory |
String |
getSourcePath()
getSourcePath |
boolean |
remove()
remove |
Method Detail |
---|
void copyFrom(File directory) throws IOException
copyFrom
directory
- Directory to copy content from
{@link
- java.io.IlleaglArgumentException} if the directory.isDirectory
returns false
IOException
void copyFrom(File directory, FileFilter fileFilter) throws IOException
copyFrom
directory
- fileFilter
-
IOException
boolean remove()
remove
Removes the underlying directory structure from the root directory down.
true
if the removal war successful, otherwise returns
false
.File getRootDirectory()
getRootDirectory
void close() throws IOException
close
Cleans up resources opened up specifically by this FileSystemHelper
IOException
String getSourcePath()
getSourcePath
Returns the true location of this FileSystemHelper backing object on the file system. This IS NOT always as the path of the object returned from thegetRootDirectory
method.
long getChecksum(String pathToResource)
pathToResource
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |