org.jalore
Interface LogReader

All Known Implementing Classes:
Log4JFileReader, Log4JReader, MultiLogReader, RegexpLogReader

public interface LogReader

Interface for reading messages from a log.

Author:
Nicolas Dutertry

Method Summary
 boolean hasMoreMessages()
          Tests if this reader contains more log messages.
 LogMessage nextMessage()
          Returns the next log message of this reader or null if no more message is available.
 

Method Detail

hasMoreMessages

boolean hasMoreMessages()
Tests if this reader contains more log messages.

Returns:
true if and only if this reader contains at least one more log message to provide; false otherwise.

nextMessage

LogMessage nextMessage()
                       throws java.io.IOException
Returns the next log message of this reader or null if no more message is available.

Returns:
the next log message
Throws:
java.io.IOException - if an error occurred while reading the next message


Copyright © 2009 Nicolas Dutertry. All Rights Reserved.