|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.evolution.player.core.network.FileTransfer
com.evolution.player.core.network.Download
com.evolution.player.core.network.URLDownload
public abstract class URLDownload
An URL download can download a file referenced by an URL.
Clients can implement.
Constructor Summary | |
---|---|
URLDownload(MediaInfo media,
java.net.URL url,
java.io.File targetFolder)
Create a new url download downloading the given media. |
Method Summary | |
---|---|
LocalMediaInfo |
download(IProgressMonitor monitor)
Download FileTransfer.getMediaInfo() and return the downloaded media if the
download succeeded, throws IOException if the download failed, returns
null if the monitor was canceled. |
Methods inherited from class com.evolution.player.core.network.Download |
---|
getLength, getPercentage, getSpeed, getTransfered |
Methods inherited from class com.evolution.player.core.network.FileTransfer |
---|
getMediaInfo |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLDownload(MediaInfo media, java.net.URL url, java.io.File targetFolder)
media
- the media to downloadurl
- the url from where to retrieve the mediatargetFolder
- the folder to where to download toMethod Detail |
---|
public LocalMediaInfo download(IProgressMonitor monitor) throws java.io.IOException
Download
FileTransfer.getMediaInfo()
and return the downloaded media if the
download succeeded, throws IOException if the download failed, returns
null if the monitor was canceled.
download
in class Download
monitor
- a monitor to report progress to and the check for cancelation
java.io.IOException
- if something went wrong during the download
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |