|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectcn.dreampie.common.util.properties.Proper
public class Proper
Proper. Proper can load properties file from CLASSPATH or File object.
| 方法摘要 | |
|---|---|
static void |
clear()
|
static boolean |
containsKey(String key)
|
static String |
get(String key)
|
static String |
get(String key,
String defaultValue)
|
static Boolean |
getBoolean(String key)
|
static Boolean |
getBoolean(String key,
Boolean defaultValue)
|
static Integer |
getInt(String key)
|
static Integer |
getInt(String key,
Integer defaultValue)
|
static Long |
getLong(String key)
|
static Long |
getLong(String key,
Long defaultValue)
|
static Prop |
getProp()
|
static Prop |
getProp(String fileName)
|
static Prop |
use(File file)
Using the properties file bye File object. |
static Prop |
use(File file,
String encoding)
Using the properties file bye File object. |
static Prop |
use(String fileName)
Using the properties file. |
static Prop |
use(String fileName,
String encoding)
Using the properties file. |
static Prop |
useless(String fileName)
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 方法详细信息 |
|---|
public static Prop use(String fileName)
use(String, String)
public static Prop use(String fileName,
String encoding)
fileName - the properties file's name in classpath or the sub directory of classpathencoding - the encodingpublic static Prop use(File file)
use(java.io.File, String)
public static Prop use(File file,
String encoding)
file - the properties File objectencoding - the encodingpublic static Prop useless(String fileName)
public static void clear()
public static Prop getProp()
public static Prop getProp(String fileName)
public static String get(String key)
public static String get(String key,
String defaultValue)
public static Integer getInt(String key)
public static Integer getInt(String key,
Integer defaultValue)
public static Long getLong(String key)
public static Long getLong(String key,
Long defaultValue)
public static Boolean getBoolean(String key)
public static Boolean getBoolean(String key,
Boolean defaultValue)
public static boolean containsKey(String key)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||