nan.tools
Class BackgroundNewsgroupListDownloader

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

public class BackgroundNewsgroupListDownloader
extends AbstractBackgroundTask

Reads the available NewsgroupList from an NNTP Server in a background thread.

Version:
1.11, 1/6/03
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
BackgroundNewsgroupListDownloader(WaitDialog dialog, NNTPClient client)
          Creates a new ReadNewsgroupsThread object.
 
Method Summary
 NewsgroupList getNewsgroupList()
          Gets the list of Newsgroups read from the server.
 void run()
          Runs the thread 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

BackgroundNewsgroupListDownloader

public BackgroundNewsgroupListDownloader(WaitDialog dialog,
                                         NNTPClient client)
Creates a new ReadNewsgroupsThread object.

Parameters:
dialog - The WaitDialog being displayed while we wait.
client - The NNTP client.
Method Detail

getNewsgroupList

public NewsgroupList getNewsgroupList()
                               throws UnfinishedException
Gets the list of Newsgroups read from the server.

Returns:
The NewsgroupList.
Throws:
UnfinishedException - if the task hasn't finished.

run

public void run()
Runs the thread task.


toString

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

Returns:
A String representation.