org.jwall.web.audit.io
Interface AuditEventReader

All Known Implementing Classes:
AccessLogAuditReader, AuditEventQueue, ConcurrentAuditReader, ModSecurity2AuditReader, ModSecurityAuditReader

public interface AuditEventReader

This interface defines the methods of an abstract event-reader. All readers must implement the method readNext() which is used to read the next event from the underlying source (i.e. file).

Author:
Christian Bockermann <chris@jwall.org>

Method Summary
 long bytesAvailable()
           
 long bytesRead()
           
 void close()
           
 AuditEvent readNext()
          This method tries to read the next event that is available.
 

Method Detail

readNext

AuditEvent readNext()
                    throws java.io.IOException,
                           ParseException
This method tries to read the next event that is available.

Returns:
The next audit-event from or NULL if no event is available.
Throws:
java.io.IOException
ParseException

close

void close()
           throws java.io.IOException
Throws:
java.io.IOException

bytesRead

long bytesRead()

bytesAvailable

long bytesAvailable()