org.codehaus.xsite.io
Class CommonsFileSystem

java.lang.Object
  extended by 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
static class CommonsFileSystem.FileSystemException
           
 
Constructor Summary
CommonsFileSystem()
           
 
Method Summary
 void copyDirectory(File sourceDirectory, File targetDirectory, boolean recurse)
           
 void copyFile(File source, File destination)
           
protected  org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
          Specifies the file filter used in the #copyDirectory() method.
 String readFile(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsFileSystem

public CommonsFileSystem()
Method Detail

readFile

public String readFile(File file)
Specified by:
readFile in interface FileSystem

copyFile

public void copyFile(File source,
                     File destination)
Specified by:
copyFile in interface FileSystem

copyDirectory

public void copyDirectory(File sourceDirectory,
                          File targetDirectory,
                          boolean recurse)
Specified by:
copyDirectory in interface FileSystem

getFileFilter

protected org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
Specifies the file filter used in the #copyDirectory() method.

Returns:
An IOFileFilter


Copyright © 2009. All Rights Reserved.