rabbit.io
Class FileHelper

java.lang.Object
  extended by rabbit.io.FileHelper

public class FileHelper
extends Object

Helper class for common file operations.

Author:
Robert Olofsson

Constructor Summary
FileHelper()
           
 
Method Summary
static void delete(File toDelete)
          Try to delete a file.
static void mkdirs(File newDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHelper

public FileHelper()
Method Detail

delete

public static void delete(File toDelete)
                   throws IOException
Try to delete a file.

Parameters:
toDelete - the file to delete
Throws:
NullPointerException - if toDelete is null
IOException - if file deletion failed

mkdirs

public static void mkdirs(File newDir)
                   throws IOException
Throws:
IOException