nan.tools
Class BackgroundReader

java.lang.Object
  extended byjava.lang.Thread
      extended bynan.tools.AbstractBackgroundTask
          extended bynan.tools.BackgroundReader
All Implemented Interfaces:
BackgroundTask, java.lang.Runnable

public class BackgroundReader
extends AbstractBackgroundTask

Background task to read and parse and XML Document from cache.

Version:
1.12, 1/6/04
Author:
John David Ratliff

Field Summary
 
Fields inherited from class nan.tools.AbstractBackgroundTask
finished
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BackgroundReader(Transposer transposer, java.io.File file, java.lang.reflect.Method method)
          Creates a new BackgroundReader object.
 
Method Summary
 void run()
          Runs this task.
 void setWaitDialog(WaitDialog dialog)
          Sets the wait dialog for this task.
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class nan.tools.AbstractBackgroundTask
isFinished
 
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, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BackgroundReader

public BackgroundReader(Transposer transposer,
                        java.io.File file,
                        java.lang.reflect.Method method)
Creates a new BackgroundReader object.

Parameters:
transposer - The object that will be tranposed with the parsed one.
file - The file to read.
method - The method that will parse it (must come from nan.model.XMLFactory).
Method Detail

setWaitDialog

public void setWaitDialog(WaitDialog dialog)
Sets the wait dialog for this task.

Parameters:
dialog - The wait dialog.

run

public void run()
Runs this task.


toString

public java.lang.String toString()
Returns a String representation of this object.

Returns:
A String representation.