public interface FileSystemHelper
Modifier and Type | Method and Description |
---|---|
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
|
void copyFrom(File directory) throws IOException
copyFrom
directory
- Directory to copy content from{@link
- java.io.IOException} 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 FileSystemHelperIOException
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
- Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.