com.mlw.fps.load.adapter
Class HalfLifeLoader
java.lang.Object
|
+--com.mlw.fps.load.DefaultLoader
|
+--com.mlw.fps.load.adapter.HalfLifeLoader
- All Implemented Interfaces:
- java.io.FilenameFilter, Loader, java.lang.Runnable
- public class HalfLifeLoader
- extends DefaultLoader
- implements java.io.FilenameFilter, java.lang.Runnable
Loads logs from counter-strike 1.3 and up and dod 1.0 and up
- Author:
- Matthew Wilson
Method Summary |
boolean |
accept(java.io.File file,
java.lang.String str)
Accept all files. |
void |
load()
Starts the parsing. |
void |
parseDirectory(java.io.File directory)
|
void |
parseLine(java.lang.String line)
|
void |
run()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HalfLifeLoader
public HalfLifeLoader(java.lang.String logDir)
- Creates a new instance of HalfLifeLoader
- Parameters:
logDir
- directory containing the logs.
HalfLifeLoader
public HalfLifeLoader(int port)
load
public void load()
throws java.lang.Exception
- Description copied from interface:
Loader
- Starts the parsing.
- Specified by:
load
in interface Loader
java.lang.Exception
- See Also:
Loader
parseDirectory
public void parseDirectory(java.io.File directory)
throws java.lang.Exception
java.lang.Exception
parseLine
public void parseLine(java.lang.String line)
accept
public boolean accept(java.io.File file,
java.lang.String str)
- Accept all files.
- Specified by:
accept
in interface java.io.FilenameFilter
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
Copyright © 2003 mlavilson. All Rights Reserved.