|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lastbamboo.common.download.LaunchFileTrackerAdapter
public class LaunchFileTrackerAdapter
Adapter class for file launchers. Can be used a stub for failed downloaders or for anything else.
| Constructor Summary | |
|---|---|
LaunchFileTrackerAdapter()
|
|
| Method Summary | |
|---|---|
int |
getActiveWriteCalls()
Accessor for the number of active writers. |
void |
onDownloadStopped()
Called when a download is stopped. |
void |
onFailure()
Called when a download fails for any reason. |
void |
onFileComplete()
Called when the file download has completed. |
void |
onRangeComplete(org.apache.commons.lang.math.LongRange range)
|
void |
waitForLaunchersToComplete()
Waits until all active launcher have finished their writes, typically to the browser. |
void |
write(OutputStream os,
boolean cancelOnStreamClose)
Writes the file to the specified stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LaunchFileTrackerAdapter()
| Method Detail |
|---|
public int getActiveWriteCalls()
LaunchFileTracker
getActiveWriteCalls in interface LaunchFileTrackerpublic void onDownloadStopped()
LaunchFileTracker
onDownloadStopped in interface LaunchFileTrackerpublic void onFailure()
LaunchFileTracker
onFailure in interface LaunchFileTrackerpublic void onFileComplete()
LaunchFileTracker
onFileComplete in interface LaunchFileTrackerpublic void waitForLaunchersToComplete()
LaunchFileTracker
waitForLaunchersToComplete in interface LaunchFileTracker
public void write(OutputStream os,
boolean cancelOnStreamClose)
throws IOException
LaunchFileTracker
write in interface LaunchFileTrackeros - The stream to write to.
IOException - If there's any read or write error writing to the
stream.public void onRangeComplete(org.apache.commons.lang.math.LongRange range)
onRangeComplete in interface org.littleshoot.util.LongRangeListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||