org.bdgp.io
Class FileUtil

java.lang.Object
  |
  +--org.bdgp.io.FileUtil

public class FileUtil
extends java.lang.Object


Constructor Summary
FileUtil()
           
 
Method Summary
static void ensureExists(java.io.File file, java.lang.ClassLoader loader, java.lang.String resource)
          Checks to see if a file exists.
static void ensureExists(java.io.File file, java.lang.String resource)
          Checks to see if a file exists.
static java.lang.ClassLoader getSystemClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

ensureExists

public static void ensureExists(java.io.File file,
                                java.lang.String resource)
                         throws java.io.IOException
Checks to see if a file exists. If it doesn't, the file is created by copying the specified resource from the System class loader. Based on code written by Matthew Pocock

ensureExists

public static void ensureExists(java.io.File file,
                                java.lang.ClassLoader loader,
                                java.lang.String resource)
                         throws java.io.IOException
Checks to see if a file exists. If it doesn't, the file is created by copying the specified resource from the specified class loader. Based on code written by Matthew Pocock

getSystemClassLoader

public static java.lang.ClassLoader getSystemClassLoader()