API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.logger. JOTFileTailer View Source
Author(s)
tcolar
Since
Version
Serial
Hierarchy
 Object
      JOTFileTailer
Implements
Subclasses
Description
public class JOTFileTailer
  This is used to "tail" a file (read it from the bottom) this is done tro be fast and not use much memory.
See also:   
Constructors
public JOTFileTailer ()
Constructor for the FileTailer object
public JOTFileTailer (int length)
  Constructor for the FileTailer object
public JOTFileTailer (int length, int separator)
  Constructor for the FileTailer object
Methods
Hide/Show inherited methods
public void loadFile (String file) throws Exception
  This is to be called to set the file to tail.
public Vector tail (int max, JOTTailFilter filter) throws Exception
  This does the job !
Fields
Hide/Show inherited fields
pack-private byte buffer
pack-private int bufferLength
pack-private int bytesToRead
pack-private int curPos
pack-private RandomAccessFile logFile
pack-private int newLine
pack-private int startLength
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar