|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jwall.web.audit.io.AccessLogAuditReader
public class AccessLogAuditReader
This simple class creates small AuditEvent objects from a line of an web-server access log. The resulting events are not complete, i.e. they do not include the complete header.
| Constructor Summary | |
|---|---|
AccessLogAuditReader(java.io.File accessLogFile)
This creates an instance of this class that reads from the given file accessLogFile. |
|
| Method Summary | |
|---|---|
long |
bytesAvailable()
|
long |
bytesRead()
|
void |
close()
|
static AuditEvent |
createEvent(java.lang.String accessLine)
This method create an audit-event from the given access-line. |
AuditEvent |
readNext()
This method reads the next line from the underlying file and creates an AuditEvent-object from it. |
static java.lang.String[] |
splitAccessLine(java.lang.String input)
This method splits the given line into tokens. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccessLogAuditReader(java.io.File accessLogFile)
throws java.io.IOException
accessLogFile.
accessLogFile - The file to read events from.
java.io.IOException - In case a reader on this file cannot be created.| Method Detail |
|---|
public AuditEvent readNext()
readNext in interface AuditEventReaderNULL if no event is available.AuditEventReader.readNext()public static java.lang.String[] splitAccessLine(java.lang.String input)
input - The string to be split into parts.
public static AuditEvent createEvent(java.lang.String accessLine)
throws java.lang.Exception
accessLine - The line to create the event from.
java.lang.Exception - In case anything goes wrong ;-)
public void close()
throws java.io.IOException
close in interface AuditEventReaderjava.io.IOExceptionpublic long bytesRead()
bytesRead in interface AuditEventReaderpublic long bytesAvailable()
bytesAvailable in interface AuditEventReader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||