net.kbox.common
Class KDataLoader

java.lang.Object
  extended by 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
           
 
Constructor Summary
protected KDataLoader()
           
 
Method Summary
 java.lang.String getBasePath()
          Get the base path.
static KDataLoader getInstance()
           
 java.util.Hashtable loadDataToHashtable(java.lang.String path)
          Load the data with specified path, and return it in key-value format in hashtable.
 java.lang.String loadDataToString(java.lang.String path)
          Load the data with specified path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

basePath

protected java.lang.String basePath
Constructor Detail

KDataLoader

protected KDataLoader()
Method Detail

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.