|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.util.FileUtil
FileUtil class.
Contains static methods for file access.
Constructor Summary | |
FileUtil()
|
Method Summary | |
static Properties |
getProperties(String propsFile)
Read the Java properties file specified by the input propsFile
parameter, and use its content to instance a new Properties object. |
static Properties |
getProperties(String propsFile,
boolean addToSystemProps)
Read the Java properties file specified by the input propsFile
parameter, and use its content to instance a new Properties object. |
static StringBuffer |
read(String file)
Read the text file whose fullpath is specified by the input file parameter,
and return the StringBuffer object containing its content. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileUtil()
Method Detail |
public static StringBuffer read(String file) throws Exception
file
parameter,
and return the StringBuffer object containing its content.
file
- the file fullpath
Exception
- if any error occurs.public static Properties getProperties(String propsFile) throws Exception
propsFile
parameter, and use its content to instance a new Properties object.
propsFile
- the name of the Java Properties file to read
Exception
- if any error occcurs.public static Properties getProperties(String propsFile, boolean addToSystemProps) throws Exception
propsFile
parameter, and use its content to instance a new Properties object.
propsFile
- the name of the Java Properties file to readaddToSystemProps
- Description of the Parameter
Exception
- if any error occcurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |