|
||||||||||
| 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(java.lang.String fileName)
|
static boolean |
fileNeedsReloading(java.lang.String fileName,
java.lang.Class clazz)
|
static boolean |
isReloadingConfigs()
|
static java.io.InputStream |
loadFile(java.lang.String fileName,
java.lang.Class clazz)
Loads opens the named file and returns the InputStream |
static java.io.InputStream |
loadFile(java.net.URL fileUrl)
Loads opens the named file and returns the InputStream |
static java.io.InputStream |
loadFile(java.net.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(java.lang.String fileName,
java.lang.Class clazz)
public static boolean fileNeedsReloading(java.lang.String fileName)
public static java.io.InputStream loadFile(java.lang.String fileName,
java.lang.Class clazz)
fileName - - the name of the file to open
java.lang.IllegalArgumentException - if there is no file with the given file namepublic static java.io.InputStream loadFile(java.net.URL fileUrl)
fileUrl - - the URL of the file to open
java.lang.IllegalArgumentException - if there is no file with the given file name
public static java.io.InputStream loadFile(java.net.URL fileUrl,
boolean openStream)
fileUrl - - the URL of the file to openopenStream - - if true, open an InputStream to the file and return it
java.lang.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 | |||||||||