public class ModSecurity2AuditStream extends AbstractAuditEventReader implements AuditEventReader, Runnable
modsecurity2. It
also implements the AuditEventSource interface.bytesRead, counter, DEFAULT_AUDIT_EVENT_FACTORY_CLASS, eofReached, eventFactory, fileSize, inputFile, pending, reader| Constructor and Description |
|---|
ModSecurity2AuditStream(InputStream in,
AuditEventListener listener)
This constructor creates an audit-event-Reader that reads from the
given input stream.
|
ModSecurity2AuditStream(InputStream in,
AuditEventListener listener,
boolean persist)
This constructor creates an audit-event-Reader that reads from the
given input stream.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<AuditEvent> |
iterator() |
String |
readline() |
AuditEvent |
readNext()
This method tries to read the next event that is available.
|
void |
run() |
atEOF, bytesAvailable, bytesRead, close, getDataRead, getFileSize, getSectionIndex, hasNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitatEOF, bytesAvailable, bytesRead, closepublic ModSecurity2AuditStream(InputStream in, AuditEventListener listener) throws IOException
in - The stream to read from.IOException - In case the stream cannot be opened or another IO error occurs.public ModSecurity2AuditStream(InputStream in, AuditEventListener listener, boolean persist) throws IOException
in - The stream to read from.IOException - In case the stream cannot be opened or another IO error occurs.public AuditEvent readNext() throws IOException, ParseException
AuditEventReaderreadNext in interface AuditEventReaderreadNext in class AbstractAuditEventReaderNULL if no event is available.IOExceptionParseExceptionAuditEventReader.readNext()public String readline() throws IOException
IOExceptionpublic Iterator<AuditEvent> iterator()
iterator in interface Iterable<AuditEvent>Copyright © 2015 jwall.org. All Rights Reserved.