|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javazoom.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(Config conf)
|
Method Summary | |
abstract void |
download(FileInfo fi,
java.io.OutputStream out)
Sends file to download (binary) to end-user. |
Config |
getConfig()
Returns current Config (Folder, Zip or Database) |
abstract int |
getDataLength(FileInfo fi)
Returns file length or -1 if file is not found or not readable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DownloadSource(Config conf)
Method Detail |
public Config getConfig()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |