|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.util.FileManager
public class FileManager
FileManager
This class was brought in from oscore trunk revision 147.
| Field Summary | |
|---|---|
protected static boolean |
reloadingConfigs
|
| Method Summary | |
|---|---|
static boolean |
fileNeedsReloading(String fileName)
|
static boolean |
fileNeedsReloading(String fileName,
Class clazz)
|
static boolean |
isReloadingConfigs()
|
static InputStream |
loadFile(String fileName,
Class clazz)
Loads opens the named file and returns the InputStream |
static InputStream |
loadFile(URL fileUrl)
Loads opens the named file and returns the InputStream |
static InputStream |
loadFile(URL fileUrl,
boolean openStream)
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 |
|---|
protected static boolean reloadingConfigs
| Method Detail |
|---|
public static void setReloadingConfigs(boolean reloadingConfigs)
public static boolean isReloadingConfigs()
public static boolean fileNeedsReloading(String fileName,
Class clazz)
public static boolean fileNeedsReloading(String fileName)
public static InputStream loadFile(String fileName,
Class clazz)
fileName - - the name of the file to open
IllegalArgumentException - if there is no file with the given file namepublic static InputStream loadFile(URL fileUrl)
fileUrl - - the URL of the file to open
IllegalArgumentException - if there is no file with the given file name
public static InputStream loadFile(URL fileUrl,
boolean openStream)
fileUrl - - the URL of the file to openopenStream - - if true, open an InputStream to the file and return it
IllegalArgumentException - if there is no file with the given file name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||