crlparser
Class CRLSAXParser

java.lang.Object
  extended by java.lang.Thread
      extended by crlparser.CRLSAXParser
All Implemented Interfaces:
java.lang.Runnable

public class CRLSAXParser
extends java.lang.Thread

Author:
Martin Lukac parser exclusively used to read and write a robot from/to a CRL file later on this might be specified by a .dtd file

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CRLSAXParser()
          default constructor
 
Method Summary
 void addParserListener(ParserListener listener)
          to get the output from this parser it has to have a listener otherise the file address or stream is lost
 void chngHandler(org.xml.sax.helpers.DefaultHandler handler)
          change the current handler
 void process(java.io.File file)
          First of two methods running this self starting threade class It parses the fille and constructs a robot
 void process(java.io.File file, java.lang.Object o)
          First of two methods running this self starting threade class It parses the fille and constructs a robot
 void run()
          overriden as form Thread
 
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
 

Constructor Detail

CRLSAXParser

public CRLSAXParser()
default constructor

Method Detail

addParserListener

public void addParserListener(ParserListener listener)
to get the output from this parser it has to have a listener otherise the file address or stream is lost


process

public void process(java.io.File file,
                    java.lang.Object o)
First of two methods running this self starting threade class It parses the fille and constructs a robot

Parameters:
file - - file to parse

process

public void process(java.io.File file)
First of two methods running this self starting threade class It parses the fille and constructs a robot

Parameters:
file - - file to parse

chngHandler

public void chngHandler(org.xml.sax.helpers.DefaultHandler handler)
change the current handler

Parameters:
handler - - the new handler

run

public void run()
overriden as form Thread

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread