at.gv.egiz.pdfas.impl.input.correction
Class ExternalCorrector.TimeoutThread

java.lang.Object
  extended byjava.lang.Thread
      extended byat.gv.egiz.pdfas.impl.input.correction.ExternalCorrector.TimeoutThread
All Implemented Interfaces:
Runnable
Enclosing class:
ExternalCorrector

protected static class ExternalCorrector.TimeoutThread
extends Thread


Field Summary
protected  BufferedReader errReader
           
protected  Process proc
           
protected  boolean ranIntoTimeout
           
protected  Thread[] threads
           
protected  long timeout
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExternalCorrector.TimeoutThread(Process proc, long timeout, Thread[] threadsToInterrupt)
           
 
Method Summary
 boolean isTimedOut()
          Tells, if the process ran into the timeout.
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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

proc

protected Process proc

timeout

protected long timeout

ranIntoTimeout

protected boolean ranIntoTimeout

threads

protected Thread[] threads

errReader

protected BufferedReader errReader
Constructor Detail

ExternalCorrector.TimeoutThread

public ExternalCorrector.TimeoutThread(Process proc,
                                       long timeout,
                                       Thread[] threadsToInterrupt)
Method Detail

run

public void run()

isTimedOut

public boolean isTimedOut()
Tells, if the process ran into the timeout.

Returns:
Returns true if the timeout was reached. Returns false if the timeout was not reached.


Copyright © 2006-2010. All Rights Reserved.