net.kbox.common
Class KDataLoader
java.lang.Object
net.kbox.common.KDataLoader
public class KDataLoader
- extends java.lang.Object
KDataLoader used for load file.
- Since:
- 2008-02-02
- Author:
- blackBox
Field Summary |
protected java.lang.String |
basePath
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
basePath
protected java.lang.String basePath
KDataLoader
protected KDataLoader()
getInstance
public static KDataLoader getInstance()
loadDataToString
public java.lang.String loadDataToString(java.lang.String path)
- Load the data with specified path.
- Parameters:
path
-
- Returns:
- if path dose not exit, a RuntimeException will be throwed.
loadDataToHashtable
public java.util.Hashtable loadDataToHashtable(java.lang.String path)
- Load the data with specified path, and
return it in key-value format in hashtable.
- Parameters:
path
-
getBasePath
public java.lang.String getBasePath()
- Get the base path.