cs195z.support
Interface CDataParser<T extends Number,E extends Serializable>

Type Parameters:
T -
E -
All Known Implementing Classes:
CDataParser.CStandardDataParser

public interface CDataParser<T extends Number,E extends Serializable>

An interface for parsing our data. It must produce a List of CElements from a file.

Author:
apstewar

Nested Class Summary
static class CDataParser.CStandardDataParser
          Implementation class of CDataParser for Doubles and Strings.
static class CDataParser.MalformedException
          Our specific exception class for bad data.
 
Method Summary
 void doSchema()
           
 List<CElement<T,E>> getResult()
           
 void parse()
           
 

Method Detail

doSchema

void doSchema()
              throws CDataParser.MalformedException,
                     IOException
Throws:
CDataParser.MalformedException
IOException

parse

void parse()
           throws CDataParser.MalformedException,
                  IOException
Throws:
CDataParser.MalformedException
IOException

getResult

List<CElement<T,E>> getResult()