reader
Class TrillianReader

java.lang.Object
  extended by reader.TrillianReader
All Implemented Interfaces:
Reader

public class TrillianReader
extends java.lang.Object
implements Reader

The TrillianReader reads a Trillian log file and converts its contents into multiple Sessions.


Constructor Summary
TrillianReader()
          Creates a new TrillianReader().
 
Method Summary
 java.util.Iterator<Session> iterator()
          Returns an Iterator<Session> of the messages in the file last read by this TrillanReader
 boolean loadFile(java.lang.String name)
          Loads the file with the given URL.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrillianReader

public TrillianReader()
Creates a new TrillianReader(). Nothing special here.

Method Detail

loadFile

public boolean loadFile(java.lang.String name)
                 throws java.io.IOException
Loads the file with the given URL.

Specified by:
loadFile in interface Reader
Parameters:
name - The name of the file to open.
Returns:
true if successful, false otherwise.
Throws:
java.io.IOException - if any other IO error occurs during reading.
java.io.FileNotFoundException - if the file can't be found.
FileFormatException - if the file's format is bad.
See Also:
Reader.loadFile(String)

iterator

public java.util.Iterator<Session> iterator()
Returns an Iterator<Session> of the messages in the file last read by this TrillanReader

Specified by:
iterator in interface Reader
Returns:
The messages in the last-read file.

main

public static void main(java.lang.String[] args)