transcript.data
Class Parser

java.lang.Object
  extended by transcript.data.Parser

public class Parser
extends java.lang.Object

Parses files for transcript data. Some of the transcript data is missing fields. Below are the values that are put in each section if it is null: dept = "NONE" cnum = "0" prof = "NONE," grade = "NONE" major = "NONE" (Note: sid, year, and term are always available)


Constructor Summary
Parser()
           
 
Method Summary
static Entry[] parseData(java.lang.String filename)
          Parses a text file from the original compsdata.txt (Dave's file) It is formatted like this (delimited by tabs): sid year/term dept.cnum.sect grade prof major
static Entry[] parseTransformedData(java.lang.String filename)
          This parses data that has been output from a series of TransformedEntry objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

parseData

public static Entry[] parseData(java.lang.String filename)
Parses a text file from the original compsdata.txt (Dave's file) It is formatted like this (delimited by tabs): sid year/term dept.cnum.sect grade prof major

Parameters:
filename - the input file
Returns:
an array of entries

parseTransformedData

public static Entry[] parseTransformedData(java.lang.String filename)
This parses data that has been output from a series of TransformedEntry objects. Their output is easier to decode than Dave's CD data.

Parameters:
filename - the input file
Returns:
an array of entries