example.filestorage
Interface FileStorageDAO

All Known Implementing Classes:
DerbyFileStorageDAO

public interface FileStorageDAO

File Storage Data Access Object

Author:
Sean C. Sullivan

Method Summary
 boolean deleteFile(long id)
           
 boolean fileExists(java.lang.String filename)
           
 java.util.List getAllFiles()
           
 byte[] getFileData(long id)
           
 void getFileData(long id, java.io.OutputStream out)
           
 FileInfo getFileInfo(long id)
           
 FileInfo getFileInfo(java.lang.String filename)
           
 void overwriteFile(long id, java.io.InputStream is, int filesize)
           
 long saveFile(java.lang.String filename, java.io.InputStream is, int filesize)
           
 

Method Detail

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.