public class SyslogAuditEventMultiStream extends SyslogAuditEventStream implements AuditEventReader, Runnable
modsecurity2. It
also implements the AuditEventSource interface.bytesRead, counter, DEFAULT_AUDIT_EVENT_FACTORY_CLASS, eofReached, eventFactory, fileSize, inputFile, reader| Constructor and Description |
|---|
SyslogAuditEventMultiStream(InputStream in,
AuditEventListener listener)
This constructor creates an audit-event-Reader that reads from the
given input stream.
|
| Modifier and Type | Method and Description |
|---|---|
StringBuffer[] |
getBuffers(String key) |
StringBuffer[] |
initBuffers(String key) |
Iterator<AuditEvent> |
iterator() |
AuditEvent |
readNext()
This method tries to read the next event that is available.
|
void |
run() |
chop, readLineatEOF, bytesAvailable, bytesRead, close, getDataRead, getFileSize, getSectionIndex, hasNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitatEOF, bytesAvailable, bytesRead, closepublic SyslogAuditEventMultiStream(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 AuditEvent readNext() throws IOException, ParseException, EOFException
AuditEventReaderreadNext in interface AuditEventReaderreadNext in class SyslogAuditEventStreamNULL if no event is available.IOExceptionParseExceptionEOFExceptionAuditEventReader.readNext()public StringBuffer[] getBuffers(String key)
public StringBuffer[] initBuffers(String key)
public void run()
run in interface Runnablerun in class SyslogAuditEventStreampublic Iterator<AuditEvent> iterator()
iterator in interface Iterable<AuditEvent>iterator in class SyslogAuditEventStreamCopyright © 2014 jwall.org. All Rights Reserved.