org.jwall.web.audit.io
Class ModSecurityAuditReader
java.lang.Object
org.jwall.web.audit.io.AbstractAuditEventReader
org.jwall.web.audit.io.ModSecurityAuditReader
- All Implemented Interfaces:
- Iterable<AuditEvent>, AuditEventReader
public class ModSecurityAuditReader
- extends AbstractAuditEventReader
This class implements a reader for AuditEvent-objects read from a file produced
by mod_security prior version 2.0.
- Author:
- Christian Bockermann <chris@jwall.org>
ModSecurityAuditReader
public ModSecurityAuditReader(File f)
throws IOException
- This creates a new instance of this class that reads events from the
given file.
- Parameters:
f -
- Throws:
IOException
ModSecurityAuditReader
public ModSecurityAuditReader(InputStream in)
ModSecurityAuditReader
public ModSecurityAuditReader(File f,
boolean tail)
throws IOException
- This creates a new instance of this class that reads events from the
given file.
- Parameters:
f -
- Throws:
IOException
readNext
public AuditEvent readNext()
throws IOException,
ParseException
- This method reads another event from the stream.
- Specified by:
readNext in interface AuditEventReader- Specified by:
readNext in class AbstractAuditEventReader
- Returns:
- The event that was read.
- Throws:
IOException
ParseException- See Also:
AuditEventReader.readNext()
iterator
public Iterator<AuditEvent> iterator()
Copyright © 2012 jwall.org. All Rights Reserved.