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,
Dataset ds)
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,
Dataset ds)
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, Dataset ds) throws IOException
filename
- - name of the fileis
- - inputstream of the file to storecreator
- - file creatords
- - dataset to attach file toIOException
- 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, Dataset ds) throws IOException
id
- - descriptor id to store the file withfilename
- - name of the fileis
- - inputstream of the file to storecreator
- - file creatords
- - dataset to attach file toIOException
- 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 © 2020. All rights reserved.