|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.logAnalyzer.handlers.AbstractLogHandler
net.logAnalyzer.handlers.ForwardOnlyLogHandler
This log handler does not save messages. It is useful for analyzers but can not be used for GUI because it only can to go forward and does not support backward or random access to the log file.
For random access, for example for a GUI, use
MemoryLogHandler
for small log files and
OnDemandLogHandler
for large files.
Constructor Summary | |
ForwardOnlyLogHandler(FilesSetReader input,
java.lang.String pattern)
|
Method Summary | |
int |
getSize()
Returns the number of messages read. |
protected void |
initParsing()
Modification to the inherited behavior. |
protected LAMessage |
loadMessage(int index)
Modification to the inherited behavior. |
protected void |
saveMessage(LAMessage message,
long pointer)
Modification to the inherited behavior. |
Methods inherited from class net.logAnalyzer.handlers.AbstractLogHandler |
addLogHandlerListener, fireEndParsing, fireStartParsing, fireStepParsing, getAnalyzers, getConverter, getConverter, getConverterIndex, getConverters, getFileLength, getFilePointer, getLastException, getMaxRecords, getMessage, getMessageConverter, getMessages, getPercentDone, getReader, isParsing, parse, parseMessage, readNextLine, releaseParsing, removeLogHandlerListener, run, setAnalyzers, setMaxRecords |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ForwardOnlyLogHandler(FilesSetReader input, java.lang.String pattern) throws java.io.FileNotFoundException, NoConverterException
input
- pattern
-
java.io.FileNotFoundException
NoConverterException
Method Detail |
public int getSize()
getSize
in interface LALogHandler
getSize
in class AbstractLogHandler
LALogHandler.getSize()
protected LAMessage loadMessage(int index)
loadMessage
in class AbstractLogHandler
index
- Index of the messageLabel to load.
AbstractLogHandler.loadMessage(int)
protected void saveMessage(LAMessage message, long pointer)
saveMessage
in class AbstractLogHandler
message
- Parsed messageLabel.pointer
- File pointer to the start of the messageLabel.AbstractLogHandler.saveMessage(LAMessage, long)
protected void initParsing() throws java.io.IOException
initParsing
in class AbstractLogHandler
java.io.IOException
- If an error occures.AbstractLogHandler.initParsing()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |