com.fuckingbrit.q3astats
Class CorePreParser

java.lang.Object
  |
  +--com.fuckingbrit.q3astats.CorePreParser
All Implemented Interfaces:
PreParser

public class CorePreParser
extends java.lang.Object
implements PreParser

The CorePreParser is a very simple implementation of the PreParser interface. The basic point of this Class is to rip out as many lines of the log file as we can prior to parsing it against the hit/kill messages. A typical qconsole.log file will contain many log lines for loading in the pak files etc. We want to strip them. This is intended as a first draft of a much more efficient parser.

Version:
1.0
Author:
Michael Jervis

Constructor Summary
CorePreParser()
           
 
Method Summary
 void strip(java.io.BufferedReader reader, java.io.ByteArrayOutputStream output)
          The strip method is the core function of the pre-parser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorePreParser

public CorePreParser()
Method Detail

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. This pre-parser is very stupid. All it knows is that if a line starts with:
..., ---, " ", or "Parsing " Then we don't want it and doesn't keep it.

Specified by:
strip in interface PreParser
Parameters:
reader - The raw un-parsed log file.
output - The parsed version of the log file will be written out here.
QuakeParseException