com.fuckingbrit.q3astats
Interface PreParser
- All Known Implementing Classes:
- CorePreParser
- public interface PreParser
The StatParser works by loading a game definition, then matching every line
of a log file against every regular expression in the game definition. Log
files can be big. A PreParser is designed to throw away as much of the fluff
as is humaly possible from the log file prior to parsing. This interface
defines a PreParser.
- Version:
- 1.0
- Author:
- Michael Jervis
- See Also:
StatParser
,
Game
Method Summary |
void |
strip(java.io.BufferedReader reader,
java.io.ByteArrayOutputStream output)
The strip method is the core function of the pre-parser. |
strip
public void strip(java.io.BufferedReader reader,
java.io.ByteArrayOutputStream output)
throws QuakeParseException
- The strip method is the core function of the pre-parser.
It takes a bufferedreader, the source log file, and a
ByteArrayOutputStream the destination for the logfile.
The purpose is to pre-parse (duh!) the source log to remove as much of
the console log fluff as possible.
- Parameters:
reader
- this is the source of the log.output
- cleaned log should be written to here.
QuakeParseException