dataloader
Class FileHandler

java.lang.Object
  extended by dataloader.FileHandler

public class FileHandler
extends java.lang.Object

A class that reads and loads the data set containing all the news.

Author:
Trond Řivind Eriksen and Kjell-Inge Skogstad

Constructor Summary
FileHandler()
           
 
Method Summary
static DataSet loadDataSet(java.lang.String location)
          The method parses the XML file tokenized.xml, and loads the data set.
static void storeDataSet(java.lang.String location, DataSet dataSet)
          A method that stores the data set.
static void storeReport(java.lang.String location, java.lang.String report)
          A method that stores the report.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHandler

public FileHandler()
Method Detail

loadDataSet

public static DataSet loadDataSet(java.lang.String location)
                           throws java.lang.Exception
The method parses the XML file tokenized.xml, and loads the data set.

Parameters:
location -
Returns:
ds The data set
Throws:
java.lang.Exception

storeDataSet

public static void storeDataSet(java.lang.String location,
                                DataSet dataSet)
A method that stores the data set.

Parameters:
location - The location
dataSet - The data set

storeReport

public static void storeReport(java.lang.String location,
                               java.lang.String report)
A method that stores the report.

Parameters:
location - The location
report - The report