public interface FileStorage
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteFile(FileDescriptor fd)
Deletes file from storage
|
boolean |
deleteFile(FileDescriptor fd,
Person creator)
Deletes file from storage
|
InputStream |
readFile(FileDescriptor fd)
Read file from storage
|
URL |
storeFile(FileDescriptor fd,
InputStream is)
Store file in file storage system
|
FileDescriptor |
storeFile(InputStream is)
Store file in file storage system
|
FileDescriptor |
storeFile(String filename,
InputStream is)
Store file in file storage system
|
FileDescriptor |
storeFile(String filename,
InputStream is,
Person creator)
Store file in file storage system
|
FileDescriptor |
storeFile(String id,
String filename,
InputStream is)
Store file in file storage system
|
FileDescriptor |
storeFile(String id,
String filename,
InputStream is,
Person creator)
Store file in file storage system
|
FileDescriptor storeFile(InputStream is) throws IOException
is - - inputstream of the file to storeIOException - if an I/O error occursFileDescriptor storeFile(String filename, InputStream is) throws IOException
filename - - name of the fileis - - inputstream of the file to storeIOException - if an I/O error occursFileDescriptor storeFile(String filename, InputStream is, Person creator) throws IOException
filename - - name of the fileis - - inputstream of the file to storecreator - - file creatorIOException - if an I/O error occursURL storeFile(FileDescriptor fd, InputStream is) throws IOException
fd - - file descriptor to store the file withis - - inputstream of the file to storeIOException - if an I/O error occursFileDescriptor storeFile(String id, String filename, InputStream is) throws IOException
id - - descriptor id to store the file withfilename - - name of the fileis - - inputstream of the file to storeIOException - if an I/O error occursFileDescriptor storeFile(String id, String filename, InputStream is, Person creator) throws IOException
id - - descriptor id to store the file withfilename - - name of the fileis - - inputstream of the file to storecreator - - file creatorIOException - if an I/O error occursInputStream readFile(FileDescriptor fd) throws IOException
fd - FileDescriptor of file to readIOException - if an I/O error occursboolean deleteFile(FileDescriptor fd)
fd - - File descriptor representing the file to deleteboolean deleteFile(FileDescriptor fd, Person creator)
fd - - File descriptor representing the file to deletecreator - - file creatorCopyright © 2017. All rights reserved.