public class Resources extends Object
| 限定符 | 构造器和说明 |
|---|---|
private |
Resources() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Resource |
openBundle(String name,
Locale locale) |
static Resource |
openBundle(String name,
Locale locale,
int refreshInterval) |
static Resource |
openFromClassPath(String name) |
static Resource |
openFromClassPath(String name,
int refreshInterval) |
static Resource |
openFromFileSystem(File file) |
static Resource |
openFromFileSystem(File file,
int refreshInterval) |
public static Resource openFromClassPath(String name) throws Exception
Exceptionpublic static Resource openFromClassPath(String name, int refreshInterval) throws Exception
Exceptionpublic static Resource openBundle(String name, Locale locale) throws Exception
Exceptionpublic static Resource openBundle(String name, Locale locale, int refreshInterval) throws Exception
Exceptionpublic static Resource openFromFileSystem(File file) throws Exception
ExceptionCopyright © 2020. All rights reserved.