|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavazoom.download.DownloadSource
This class defines the API a DownloadSource extended class must implement. Depending on input XML file, Download4J will instanciate the needed DownloadSource.
| Constructor Summary | |
DownloadSource(java.util.Properties props)
|
|
| Method Summary | |
abstract void |
download(FileInfo fi,
java.io.OutputStream out)
Sends file to download (binary) to end-user. |
abstract int |
getDataLength(FileInfo fi)
Returns file length or -1 if file is not found or not readable. |
java.util.Properties |
getMeta()
|
abstract java.util.Vector |
listFiles(Config c,
boolean enablesubfolders)
List files of underlying config. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DownloadSource(java.util.Properties props)
| Method Detail |
public java.util.Properties getMeta()
public abstract int getDataLength(FileInfo fi)
fi - FileInfo to download
public abstract void download(FileInfo fi,
java.io.OutputStream out)
throws java.io.IOException
fi - FileInfo to download
java.io.IOException
public abstract java.util.Vector listFiles(Config c,
boolean enablesubfolders)
c -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||