example.filestorage
Interface FileStorageDAO
- All Known Implementing Classes:
- DerbyFileStorageDAO
public interface FileStorageDAO
File Storage Data Access Object
- Author:
- Sean C. Sullivan
getFileInfo
FileInfo getFileInfo(long id)
getFileInfo
FileInfo getFileInfo(java.lang.String filename)
getAllFiles
java.util.List getAllFiles()
- Returns:
- a list that contains zero or more
FileInfo
objects
saveFile
long saveFile(java.lang.String filename,
java.io.InputStream is,
int filesize)
overwriteFile
void overwriteFile(long id,
java.io.InputStream is,
int filesize)
deleteFile
boolean deleteFile(long id)
fileExists
boolean fileExists(java.lang.String filename)
getFileData
void getFileData(long id,
java.io.OutputStream out)
getFileData
byte[] getFileData(long id)
Copyright © 2005 strutsblobapp.sourceforge.net. All Rights Reserved.