cs195z.support
Class CDataParser.CStandardDataParser
java.lang.Object
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
CDataParser.CStandardDataParser
public CDataParser.CStandardDataParser(File f)
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