|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.timeindexing.plugin.DefaultReader
com.timeindexing.plugin.Line
com.timeindexing.plugin.WebServerLogLine
A plugin that takes an input stream and returns a line at a time. The data is parsed as a Web log file, and it expects to see dates of the following format: [01/Jul/2003:10:15:05 +0100] .
Constructor Summary | |
WebServerLogLine(java.io.BufferedReader inReader)
Construct a WebServerLogLine plugin from a BufferedReader. |
|
WebServerLogLine(java.io.InputStream inStream)
Construct a WebServerLogLine plugin from an InputStream. |
|
WebServerLogLine(java.io.Reader inReader)
Construct a WebServerLogLine plugin from a Reader. |
Method Summary | |
java.util.Date |
bespokeParse(java.lang.String aDate)
Provide a bespoke parser for dates which look like [08/Jul/2001:07:03:39 +0000] |
protected boolean |
eofProcess()
Processing at EOF. |
protected ReaderPlugin |
init()
Initialise the plugin |
protected void |
initMonthMap()
|
int |
monthIndex(java.lang.String monthString,
int offset)
|
protected ReaderResult |
process(java.lang.String line)
Process the line |
Methods inherited from class com.timeindexing.plugin.Line |
read |
Methods inherited from class com.timeindexing.plugin.DefaultReader |
getInputStream, isEOF, setEOF, setInputStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.timeindexing.plugin.ReaderPlugin |
getInputStream, isEOF, setEOF, setInputStream |
Constructor Detail |
public WebServerLogLine(java.io.InputStream inStream)
public WebServerLogLine(java.io.Reader inReader)
public WebServerLogLine(java.io.BufferedReader inReader)
Method Detail |
protected ReaderPlugin init()
protected void initMonthMap()
protected ReaderResult process(java.lang.String line)
process
in class Line
public java.util.Date bespokeParse(java.lang.String aDate) throws java.text.ParseException
java.text.ParseException
public int monthIndex(java.lang.String monthString, int offset) throws java.text.ParseException
java.text.ParseException
protected boolean eofProcess()
eofProcess
in class Line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |