com.opensymphony.util
Class FileManager

java.lang.Object
  extended by com.opensymphony.util.FileManager

public class FileManager
extends Object

FileManager

Author:
Jason Carreira Created May 7, 2003 8:44:26 PM

Field Summary
protected static boolean reloadingConfigs
           
 
Method Summary
static boolean fileNeedsReloading(String fileName)
           
static boolean isReloadingConfigs()
           
static InputStream loadFile(String fileName, Class clazz)
          Loads opens the named file and returns the InputStream
static void setReloadingConfigs(boolean reloadingConfigs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reloadingConfigs

protected static boolean reloadingConfigs
Method Detail

setReloadingConfigs

public static void setReloadingConfigs(boolean reloadingConfigs)

isReloadingConfigs

public static boolean isReloadingConfigs()

fileNeedsReloading

public static boolean fileNeedsReloading(String fileName)

loadFile

public static InputStream loadFile(String fileName,
                                   Class clazz)
Loads opens the named file and returns the InputStream

Parameters:
fileName - - the name of the file to open
Returns:
an InputStream of the file contents or null
Throws:
IllegalArgumentException - if there is no file with the given file name

OSCore Project Page