|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--MicroTAPAS.util.FileUtil
Collection if utillities for reading and writing from/to files.
| Field Summary | |
private static java.lang.String |
COMMENT_CHAR
|
private static java.lang.String |
PARAM_SEPERATOR
|
| Constructor Summary | |
FileUtil()
|
|
| Method Summary | |
static void |
createDir(java.lang.String path)
If a directory does not exist, create it locally |
static java.util.Hashtable |
readConfigFile(java.lang.String file)
This method reads a config file array (as returned from FileUtil.readFileToArray()), and puts the result into a Hashtable. |
static java.lang.String[] |
readFileToArray(java.lang.String file,
java.lang.String comment,
java.lang.String paramSeperator)
This method reads a local file into a String array (each element a line). |
static java.lang.String[] |
readURLFileToArray(java.lang.String urlAddr,
java.lang.String comment,
java.lang.String paramSeperator)
This method reads a Internet file into a String array (each element a line). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COMMENT_CHAR
private static final java.lang.String PARAM_SEPERATOR
| Constructor Detail |
public FileUtil()
| Method Detail |
public static java.util.Hashtable readConfigFile(java.lang.String file)
file - The name of the config file
public static java.lang.String[] readFileToArray(java.lang.String file,
java.lang.String comment,
java.lang.String paramSeperator)
public static java.lang.String[] readURLFileToArray(java.lang.String urlAddr,
java.lang.String comment,
java.lang.String paramSeperator)
public static void createDir(java.lang.String path)
path - The path of the dir
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||