com.github.searls.jasmine.io
Class FileUtilsWrapper

java.lang.Object
  extended by com.github.searls.jasmine.io.FileUtilsWrapper

public class FileUtilsWrapper
extends Object


Constructor Summary
FileUtilsWrapper()
           
 
Method Summary
 void copyDirectory(File srcDir, File destDir, org.apache.commons.io.filefilter.IOFileFilter filter)
           
 void forceMkdir(File file)
           
 Collection<File> listFiles(File file, String[] extensions, boolean recursive)
           
 String readFileToString(File file)
           
 void writeStringToFile(File file, String data, String encoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtilsWrapper

public FileUtilsWrapper()
Method Detail

readFileToString

public String readFileToString(File file)
                        throws IOException
Throws:
IOException

forceMkdir

public void forceMkdir(File file)
                throws IOException
Throws:
IOException

listFiles

public Collection<File> listFiles(File file,
                                  String[] extensions,
                                  boolean recursive)

writeStringToFile

public void writeStringToFile(File file,
                              String data,
                              String encoding)
                       throws IOException
Throws:
IOException

copyDirectory

public void copyDirectory(File srcDir,
                          File destDir,
                          org.apache.commons.io.filefilter.IOFileFilter filter)
                   throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.