public class FileManager extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static boolean |
reloadingConfigs |
| 限定符和类型 | 方法和说明 |
|---|---|
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 InputStream |
loadFile(URL fileUrl)
Loads opens the named file and returns the InputStream
|
static void |
setReloadingConfigs(boolean reloadingConfigs) |
public static void setReloadingConfigs(boolean reloadingConfigs)
public static boolean isReloadingConfigs()
public static boolean fileNeedsReloading(String fileName)
public static InputStream loadFile(String fileName, Class clazz)
fileName - - the name of the file to openIllegalArgumentException - if there is no file with the given file namepublic static InputStream loadFile(URL fileUrl)
fileUrl - - the URL of the file to openIllegalArgumentException - if there is no file with the given file nameCopyright © 2023 onecode. All rights reserved.