Package ipsk.net
Class URLMultiContentLoader
- java.lang.Object
-
- ipsk.awt.ProgressWorker
-
- ipsk.net.URLMultiContentLoader
-
- All Implemented Interfaces:
Worker
,ProgressUpdate
,java.lang.Runnable
public class URLMultiContentLoader extends ProgressWorker
Downloader for URL content.- Author:
- K.Jaensch, klausj@phonetik.uni-muenchen.de
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ipsk.awt.ProgressWorker
ProgressWorker.ProgressEventTransferAgent
-
Nested classes/interfaces inherited from interface ipsk.awt.Worker
Worker.State
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEBUG
static int
DEBUG_TOTAL_MIN_MS
int
DEFAULT_BUFFER_SIZE
-
Fields inherited from class ipsk.awt.ProgressWorker
generateEvents, progressEventTransferAgent, progressStatus, task, thread, threadName
-
-
Constructor Summary
Constructors Constructor Description URLMultiContentLoader()
URLMultiContentLoader(java.lang.String threadName)
URLMultiContentLoader(java.util.List<Download> downloads)
Constructor.URLMultiContentLoader(java.util.List<Download> downloads, java.lang.String threadName)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doWork()
static void
main(java.lang.String[] args)
void
open()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class ipsk.awt.ProgressWorker
addProgressListener, cancel, close, fireProgressEvent, fireProgressEvent, getProgressStatus, getStatus, getTask, hasCancelRequest, removeProgressListener, reset, run, setRunningWithParentWorker, setTask, start
-
-
-
-
Field Detail
-
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
-
DEBUG_TOTAL_MIN_MS
public static final int DEBUG_TOTAL_MIN_MS
- See Also:
- Constant Field Values
-
DEFAULT_BUFFER_SIZE
public final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
URLMultiContentLoader
public URLMultiContentLoader()
-
URLMultiContentLoader
public URLMultiContentLoader(java.lang.String threadName)
-
URLMultiContentLoader
public URLMultiContentLoader(java.util.List<Download> downloads)
Constructor.
-
URLMultiContentLoader
public URLMultiContentLoader(java.util.List<Download> downloads, java.lang.String threadName)
Constructor.
-
-
Method Detail
-
open
public void open() throws WorkerException
- Specified by:
open
in interfaceWorker
- Overrides:
open
in classProgressWorker
- Throws:
WorkerException
-
doWork
public void doWork() throws WorkerException
- Overrides:
doWork
in classProgressWorker
- Throws:
WorkerException
-
main
public static void main(java.lang.String[] args)
-
-