public class SyslogAuditEventStream 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 |
|---|
SyslogAuditEventStream(File file,
AuditEventListener l) |
SyslogAuditEventStream(File file,
AuditEventListener l,
boolean autoRemove) |
SyslogAuditEventStream(FileReader reader,
AuditEventListener listener,
boolean tail) |
SyslogAuditEventStream(InputStream in,
AuditEventListener listener)
This constructor creates an audit-event-Reader that reads from the
given input stream.
|
SyslogAuditEventStream(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 |
|---|---|
protected String |
chop(String line) |
Iterator<AuditEvent> |
iterator() |
protected String |
readLine(boolean blocking) |
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 SyslogAuditEventStream(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 SyslogAuditEventStream(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 SyslogAuditEventStream(FileReader reader, AuditEventListener listener, boolean tail)
public SyslogAuditEventStream(File file, AuditEventListener l) throws IOException
IOExceptionpublic SyslogAuditEventStream(File file, AuditEventListener l, boolean autoRemove) throws IOException
IOExceptionpublic AuditEvent readNext() throws IOException, ParseException, EOFException
AuditEventReaderreadNext in interface AuditEventReaderreadNext in class AbstractAuditEventReaderNULL if no event is available.IOExceptionParseExceptionEOFExceptionAuditEventReader.readNext()protected String readLine(boolean blocking) throws IOException
IOExceptionpublic Iterator<AuditEvent> iterator()
iterator in interface Iterable<AuditEvent>Copyright © 2013 jwall.org. All Rights Reserved.