ecologylab.appframework
Class SimpleDownloadProcessor

java.lang.Object
  extended by ecologylab.generic.Debug
      extended by ecologylab.appframework.SimpleDownloadProcessor
All Implemented Interfaces:
DownloadProcessor

public class SimpleDownloadProcessor
extends Debug
implements DownloadProcessor

A simple download processor: just download the Downloadable immediately.

Author:
andruid

Constructor Summary
SimpleDownloadProcessor()
           
 
Method Summary
 void download(Downloadable thatDownloadable, DispatchTarget dispatchTarget)
          Download it now, in this thread.
 void stop()
           
 
Methods inherited from class ecologylab.generic.Debug
classSimpleName, closeLoggingFile, debug, debug, debug, debug, debugA, debugA, debugA, debugI, debugI, debugI, error, error, getClassName, getClassName, getInteractive, getPackageName, getPackageName, getPackageName, initialize, level, level, level, logToFile, print, print, println, println, println, println, println, println, printlnA, printlnA, printlnA, printlnI, printlnI, printlnI, printlnI, setLoggingFile, show, show, superString, toggleInteractive, toString, toString, warning, warning, weird, weird
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleDownloadProcessor

public SimpleDownloadProcessor()
Method Detail

stop

public void stop()
Specified by:
stop in interface DownloadProcessor

download

public void download(Downloadable thatDownloadable,
                     DispatchTarget dispatchTarget)
              throws java.io.IOException
Download it now, in this thread.

Specified by:
download in interface DownloadProcessor
Parameters:
thatDownloadable - The thing to download.
dispatchTarget - Ignored, since we are not asynchronous, there are no callbacks.
Throws:
java.io.IOException