com.timeindexing.plugin
Class Line

java.lang.Object
  extended bycom.timeindexing.plugin.DefaultReader
      extended bycom.timeindexing.plugin.Line
All Implemented Interfaces:
ReaderPlugin
Direct Known Subclasses:
FtpServerLogLine, MailServerLogLine, WebServerLogLine

public class Line
extends DefaultReader
implements ReaderPlugin

A plugin that takes an input stream and returns a line at a time.


Constructor Summary
Line(java.io.BufferedReader inReader)
          Construct a Line plugin from a BufferedReader.
Line(java.io.InputStream inStream)
          Construct a Line plugin from an InputStream.
Line(java.io.Reader inReader)
          Construct a Line plugin from a Reader.
 
Method Summary
protected  boolean eofProcess()
          Processing at EOF.
protected  ReaderResult process(java.lang.String line)
          Process the line
 ReaderResult read()
          Get next input buffer.
 
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

Line

public Line(java.io.InputStream inStream)
Construct a Line plugin from an InputStream.


Line

public Line(java.io.Reader inReader)
Construct a Line plugin from a Reader.


Line

public Line(java.io.BufferedReader inReader)
Construct a Line plugin from a BufferedReader.

Method Detail

read

public ReaderResult read()
                  throws java.io.IOException
Get next input buffer.

Specified by:
read in interface ReaderPlugin
Throws:
java.io.IOException

process

protected ReaderResult process(java.lang.String line)
Process the line


eofProcess

protected boolean eofProcess()
Processing at EOF. Return values states if something happended.