public interface FileStorage
Modifier and Type | Method and Description |
---|---|
boolean |
deleteFile(FileDescriptor fd)
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 id,
String filename,
InputStream is)
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 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 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 deleteCopyright © 2016. All rights reserved.