|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectecologylab.generic.Debug
ecologylab.io.DownloadableFileToDisk
public class DownloadableFileToDisk
| Constructor Summary | |
|---|---|
DownloadableFileToDisk(ParsedURL target,
java.io.File destination)
|
|
DownloadableFileToDisk(ParsedURL target,
java.io.File destination,
StatusReporter status)
|
|
| Method Summary | |
|---|---|
void |
delivery(java.lang.Object o)
Called, probably later asynchronously, when the requested service is complete. |
void |
downloadDone()
Call to notify the object that its download is completed; |
void |
handleIoError()
Called in case an IO error happens. |
boolean |
handleTimeout()
Called in case a timeout happens. |
boolean |
isDownloadDone()
Called to inquire on the status of a download. |
boolean |
isRecycled()
True if the Downloadable has been recycled, and thus should not be downloaded. |
void |
performDownload()
Called to start download. |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DownloadableFileToDisk(ParsedURL target,
java.io.File destination,
StatusReporter status)
public DownloadableFileToDisk(ParsedURL target,
java.io.File destination)
| Method Detail |
|---|
public void downloadDone()
Downloadable
downloadDone in interface Downloadablepublic void handleIoError()
Downloadable
handleIoError in interface Downloadablepublic boolean handleTimeout()
Downloadable
handleTimeout in interface Downloadablepublic boolean isDownloadDone()
Downloadable
isDownloadDone in interface Downloadable
public void performDownload()
throws java.lang.Exception
Downloadable
performDownload in interface Downloadablejava.lang.Exceptionpublic void delivery(java.lang.Object o)
DispatchTarget
delivery in interface DispatchTargeto - -- enables an argument of any type to be passed back.public boolean isRecycled()
Downloadable
isRecycled in interface Downloadable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||