cs1705.weblog
Class LogReader

java.lang.Object
  extended bycs1705.weblog.LogReader

public class LogReader
extends Object

A class to read information from a file of web server accesses. It currently supports log files from the Virginia Tech CS department's server proxy, which are in Apache's log format.

Version:
2003.10.31
Author:
Stephen Edwards

Constructor Summary
LogReader(BufferedReader inStream)
          Create a LogfileReader to supply data from the specified stream.
 
Method Summary
 boolean hasMoreEntries()
          Does the reader have more data to supply?
 LogEntry nextEntry()
          Analyze the next line from the log file and make it available via a LogEntry object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogReader

public LogReader(BufferedReader inStream)
Create a LogfileReader to supply data from the specified stream.

Method Detail

hasMoreEntries

public boolean hasMoreEntries()
Does the reader have more data to supply?

Returns:
true if there is more data available, false otherwise.

nextEntry

public LogEntry nextEntry()
Analyze the next line from the log file and make it available via a LogEntry object.

Returns:
A LogEntry containing the data from the next log line, or null if there are no more lines.