public class ModSecurity2AuditReader extends AbstractAuditEventReader implements AuditEventReader
modsecurity2. It
also implements the AuditEventSource interface.bytesRead, counter, DEFAULT_AUDIT_EVENT_FACTORY_CLASS, eofReached, eventFactory, fileSize, inputFile, pending, reader| Constructor and Description |
|---|
ModSecurity2AuditReader(File file)
This simple constructor creates a reader which will simply read
events from the given file without listening for newly appended
events.
|
ModSecurity2AuditReader(File file,
boolean tail)
This constructor creates a ModSecurity2-AuditReader with a file
as source.
|
ModSecurity2AuditReader(InputStream in)
This constructor creates an audit-event-Reader that reads from the
given input stream.
|
ModSecurity2AuditReader(InputStream in,
boolean persist)
This constructor creates an audit-event-Reader that reads from the
given input stream.
|
ModSecurity2AuditReader(Reader inputReader) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<AuditEvent> |
iterator() |
AuditEvent |
readNext()
This method tries to read the next event that is available.
|
atEOF, bytesAvailable, bytesRead, close, getDataRead, getFileSize, getSectionIndex, hasNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitatEOF, bytesAvailable, bytesRead, closepublic ModSecurity2AuditReader(InputStream in) throws IOException
in - The stream to read from.IOException - In case the stream cannot be opened or another IO error occurs.public ModSecurity2AuditReader(InputStream in, boolean persist) throws IOException
in - The stream to read from.IOException - In case the stream cannot be opened or another IO error occurs.public ModSecurity2AuditReader(File file, boolean tail) throws IOException
file - The file to read from.tail - Skip the whole file at first and read only events that
are subsequently appended.IOException - In case an IO error occurs.public ModSecurity2AuditReader(File file) throws IOException
file - The file to read events from.IOException - In case an IO error occurs.Exception - In case of a parsing error.public ModSecurity2AuditReader(Reader inputReader) throws IOException
IOExceptionpublic AuditEvent readNext() throws IOException, ParseException
AuditEventReaderreadNext in interface AuditEventReaderreadNext in class AbstractAuditEventReaderNULL if no event is available.IOExceptionParseExceptionAuditEventReader.readNext()public Iterator<AuditEvent> iterator()
iterator in interface Iterable<AuditEvent>Copyright © 2015 jwall.org. All Rights Reserved.