Package org.codehaus.xsite.io
Class CommonsFileSystem
- java.lang.Object
-
- org.codehaus.xsite.io.CommonsFileSystem
-
- All Implemented Interfaces:
FileSystem
public class CommonsFileSystem extends Object implements FileSystem
Commons-based FileSystem implementation- Author:
- Joe Walnes, Mauro Talevi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommonsFileSystem.FileSystemException
-
Constructor Summary
Constructors Constructor Description CommonsFileSystem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyDirectory(File sourceDirectory, File targetDirectory, boolean recurse)voidcopyFile(File source, File destination)protected org.apache.commons.io.filefilter.IOFileFiltergetFileFilter()Specifies the file filter used in the #copyDirectory() method.StringreadFile(File file)
-
-
-
Method Detail
-
readFile
public String readFile(File file)
- Specified by:
readFilein interfaceFileSystem
-
copyFile
public void copyFile(File source, File destination)
- Specified by:
copyFilein interfaceFileSystem
-
copyDirectory
public void copyDirectory(File sourceDirectory, File targetDirectory, boolean recurse)
- Specified by:
copyDirectoryin interfaceFileSystem
-
getFileFilter
protected org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
Specifies the file filter used in the #copyDirectory() method.- Returns:
- An IOFileFilter
-
-