com.googlepages.dronten.jripper.util
Class StreamParserThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.googlepages.dronten.jripper.util.BaseThread
          extended by com.googlepages.dronten.jripper.util.StreamThread
              extended by com.googlepages.dronten.jripper.util.StreamParserThread
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ProgressStreamParser, ProgressStreamParser, ProgressStreamParser, ProgressStreamParser, ProgressStreamParser

public class StreamParserThread
extends StreamThread

Base class for parsing data from the decoders.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.googlepages.dronten.jripper.util.StreamThread
StreamThread.ReadType
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  int aMatchCount
           
protected  java.util.regex.Pattern aPattern
           
 
Fields inherited from class com.googlepages.dronten.jripper.util.StreamThread
aByteReader, aByteWriter, aLineReader, aType, aWrite
 
Fields inherited from class com.googlepages.dronten.jripper.util.BaseThread
aProgress, aRunning
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamParserThread(boolean toStdout)
           
 
Method Summary
 void data(java.lang.String line)
          Parse progress output from various programs.
 int getMatchCount()
           
 java.util.regex.Pattern getPattern()
           
 
Methods inherited from class com.googlepages.dronten.jripper.util.StreamThread
close, data, getType, isWriting, run, setByteReader, setByteWriter, setLineReader, write
 
Methods inherited from class com.googlepages.dronten.jripper.util.BaseThread
addLog, getLog, getTrackNum, hasFailed, setFailed, setLog, setTrackNum, stopLogging, stopRunning
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

aPattern

protected java.util.regex.Pattern aPattern

aMatchCount

protected int aMatchCount
Constructor Detail

StreamParserThread

public StreamParserThread(boolean toStdout)
Parameters:
toStdout - Debug param, if true print some extra debug message
Method Detail

data

public void data(java.lang.String line)
Parse progress output from various programs.

Overrides:
data in class StreamThread
Parameters:
line - Text string from decoder

getMatchCount

public int getMatchCount()
Returns:
Number of valid matches

getPattern

public java.util.regex.Pattern getPattern()
Returns:
Pattern object