cs195z.support
Class CDataParser.CStandardDataParser

java.lang.Object
  extended by cs195z.support.CDataParser.CStandardDataParser
All Implemented Interfaces:
CDataParser
Enclosing interface:
CDataParser<T extends Number,E extends Serializable>

public static class CDataParser.CStandardDataParser
extends Object
implements CDataParser

Implementation class of CDataParser for Doubles and Strings.

Author:
apstewar

Nested Class Summary
 
Nested classes/interfaces inherited from interface cs195z.support.CDataParser
CDataParser.CStandardDataParser, CDataParser.MalformedException
 
Constructor Summary
CDataParser.CStandardDataParser(File f)
           
 
Method Summary
 void doSchema()
          Detects a schema for the rest of the doc.
 List<CElement<Double,String>> getResult()
           
 void parse()
          Parses the individual data values line by line and makes CElements for them.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDataParser.CStandardDataParser

public CDataParser.CStandardDataParser(File f)
Method Detail

doSchema

public void doSchema()
              throws CDataParser.MalformedException,
                     IOException
Detects a schema for the rest of the doc. FIRST UNCOMMENTED LINE IS SCHEMA DECLARATION!

Specified by:
doSchema in interface CDataParser
Throws:
CDataParser.MalformedException
IOException

getResult

public List<CElement<Double,String>> getResult()
Specified by:
getResult in interface CDataParser

parse

public void parse()
           throws CDataParser.MalformedException,
                  IOException
Parses the individual data values line by line and makes CElements for them.

Specified by:
parse in interface CDataParser
Throws:
CDataParser.MalformedException
IOException