thredds.logs
Class LogReader
java.lang.Object
thredds.logs.LogReader
public class LogReader
- extends Object
Superclass to read TDS logs
- Since:
- Apr 10, 2008
- Author:
- caron
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogReader
public LogReader(LogReader.LogParser parser)
readAll
public void readAll(File dir,
FileFilter ff,
LogReader.Closure closure,
LogReader.LogFilter logf,
LogReader.Stats stat)
throws IOException
- Read all the files in a directory and process them. Files are sorted by filename.
- Parameters:
dir
- read from this directoryff
- files must pass this filter (may be null)closure
- send each Log to this closurelogf
- filter out these Logs (may be null)stat
- accumulate statitistics (may be null)
- Throws:
IOException
- on read error
scanLogFile
public void scanLogFile(File file,
LogReader.Closure closure,
LogReader.LogFilter logf,
LogReader.Stats stat)
throws IOException
- Read a log file.
- Parameters:
file
- file to readclosure
- send each Log to this closurelogf
- filter out these Logs (may be null)stat
- accumulate statitistics (may be null)
- Throws:
IOException
- on read error
main
public static void main(String[] args)
throws IOException
- Throws:
IOException
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.