|
||||||||||
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(java.io.File directory)
copyFrom |
void |
copyFrom(java.io.File directory,
java.io.FileFilter fileFilter)
copyFrom |
long |
getChecksum(java.lang.String pathToResource)
Given a path to a resource in this file system, return a checksum on that resource's content. |
java.io.File |
getRootDirectory()
getRootDirectory |
java.lang.String |
getSourcePath()
getSourcePath |
boolean |
remove()
remove |
Method Detail |
---|
void copyFrom(java.io.File directory) throws java.io.IOException
copyFrom
directory
- Directory to copy content from
{@link
- java.io.IlleaglArgumentException} if the directory.isDirectory
returns false
java.io.IOException
void copyFrom(java.io.File directory, java.io.FileFilter fileFilter) throws java.io.IOException
copyFrom
directory
- fileFilter
-
java.io.IOException
boolean remove()
remove
Removes the underlying directory structure from the root directory down.
true
if the removal war successful, otherwise returns
false
.java.io.File getRootDirectory()
getRootDirectory
void close() throws java.io.IOException
close
Cleans up resources opened up specifically by this FileSystemHelper
java.io.IOException
java.lang.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(java.lang.String pathToResource)
pathToResource
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |