public class FileUtil
extends java.lang.Object
| 构造器和说明 |
|---|
FileUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.util.Properties |
getProperties(java.lang.String propsFile)
Description:获取属性文件的类容
|
static java.util.Properties |
getProperties(java.lang.String propsFile,
boolean addToSystemProps)
Description:获取属性文件的内容,并且根据addToSystemProps的值是否装载系统属性
|
static java.lang.StringBuilder |
read(java.lang.String file)
Description:读取文件的内容,将其保存在StringBuffer对象中返回,
|
public static java.lang.StringBuilder read(java.lang.String file)
throws java.lang.Exception
file - java.lang.Exception - StringBufferpublic static java.util.Properties getProperties(java.lang.String propsFile)
throws java.lang.Exception
propsFile - java.lang.Exception - Propertiespublic static java.util.Properties getProperties(java.lang.String propsFile,
boolean addToSystemProps)
throws java.lang.Exception
propsFile - addToSystemProps - true:装载系统属性,false不装载系统属性java.lang.Exception - Properties