Class TranscriptParser

java.lang.Object
  |
  +--TranscriptParser

public final class TranscriptParser
extends java.lang.Object

HTML parser for student transcripts made by Dowling College's Banner Database. Given a user name and password, this class will retrieve and parse the transcript data on the fly, subsequently allowing access to the various information obtained via its interface.


Constructor Summary
TranscriptParser()
          Constructs a TranscriptParser instance.
 
Method Summary
 java.util.Collection getCourses()
           
 int getTotalCreditCount()
           
 int getTransferCreditCount()
           
 void parse(java.lang.String userId, java.lang.String password)
          Parses a student's transcript.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranscriptParser

public TranscriptParser()
Constructs a TranscriptParser instance.

Method Detail

parse

public void parse(java.lang.String userId,
                  java.lang.String password)
           throws java.io.IOException,
                  TranscriptException,
                  java.net.MalformedURLException
Parses a student's transcript. Given a username and password, this method will parse all necessary information from a student's transcript on-the-fly as it is downloaded. This method must be called before the client should expect legitimate data to be returned from this class' accessor methods.

Parameters:
userId - The student's Banner user id.
password - The student's Banner password.
Throws:
java.io.IOException - If access to banner cannot be obtained.
TranscriptException - If the transcript obtained from banner was invalid.
MalformedURLException - If the URL's used internally to access banner are malformed.

getCourses

public java.util.Collection getCourses()

getTransferCreditCount

public int getTransferCreditCount()

getTotalCreditCount

public int getTotalCreditCount()