|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavazoom.download.DownloadSource
javazoom.download.DownloadDatabaseSource
This class implements a DownloadSource for database. All files are downloaded from a table.
Field Summary | |
static int |
BUFFERSIZE
Buffer size to read file from database inputstream and write to user's outputstream. |
Constructor Summary | |
DownloadDatabaseSource(java.util.Properties meta)
Contructs DownloadDatabaseSource and loads JDBC driver. |
Method Summary | |
void |
download(FileInfo fi,
java.io.OutputStream outdata)
Sends file to download (binary) to end-user. |
int |
getDataLength(FileInfo fi)
Returns file length or -1 if file is not found or not readable. |
java.util.Vector |
listFiles(Config cnf,
boolean enablesubfolders)
List files in folder. |
Methods inherited from class javazoom.download.DownloadSource |
getMeta |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int BUFFERSIZE
Constructor Detail |
public DownloadDatabaseSource(java.util.Properties meta)
Method Detail |
public int getDataLength(FileInfo fi)
getDataLength
in class DownloadSource
fi
- FileInfo to download
public void download(FileInfo fi, java.io.OutputStream outdata) throws java.io.IOException
download
in class DownloadSource
fi
- FileInfo to downloadoutdata
- OutputStream for current user.
java.io.IOException
public java.util.Vector listFiles(Config cnf, boolean enablesubfolders)
listFiles
in class DownloadSource
cnf
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |