reader
Interface Reader

All Known Implementing Classes:
DeadAIMReader, HTMLReader, TrillianReader

public interface Reader

Defines the required methods for a class that Reads from a log file formatted in a certain way.


Method Summary
 java.util.Iterator<Session> iterator()
          Gets the Iterator that iterates through the stored Session objects.
 boolean loadFile(java.lang.String filename)
          Loads a file into this class.
 

Method Detail

loadFile

boolean loadFile(java.lang.String filename)
                 throws java.io.IOException
Loads a file into this class. Once loaded you can get an Iterator of Session objects with the iterator() method.

Parameters:
filename - The file to load from.
Returns:
true if successful, false otherwise.
Throws:
java.io.IOException - When an I/O error occurs.
See Also:
iterator()

iterator

java.util.Iterator<Session> iterator()
Gets the Iterator that iterates through the stored Session objects.

Returns:
An Iterator of Session objects that were stored in the file.