Package nl.goodbytes.xmpp.xep0363
Interface Repository
-
- All Known Implementing Classes:
AbstractFileSystemRepository,DirectoryRepository,TempDirectoryRepository
public interface RepositoryStores uploaded files for later retrieval.- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcalculateETagHash(SecureUniqueId uuid)booleancontains(SecureUniqueId uuid)booleandelete(SecureUniqueId uuid)voiddestroy()StringgetContentType(SecureUniqueId uuid)InputStreamgetInputStream(SecureUniqueId uuid)OutputStreamgetOutputStream(SecureUniqueId uuid)longgetSize(SecureUniqueId uuid)voidinitialize()
-
-
-
Method Detail
-
initialize
void initialize() throws IOException- Throws:
IOException
-
destroy
void destroy()
-
contains
boolean contains(SecureUniqueId uuid)
-
calculateETagHash
String calculateETagHash(SecureUniqueId uuid)
-
getContentType
String getContentType(SecureUniqueId uuid)
-
getSize
long getSize(SecureUniqueId uuid)
-
getInputStream
InputStream getInputStream(SecureUniqueId uuid) throws IOException
- Throws:
IOException
-
getOutputStream
OutputStream getOutputStream(SecureUniqueId uuid) throws IOException
- Throws:
IOException
-
delete
boolean delete(SecureUniqueId uuid) throws IOException
- Throws:
IOException
-
-