Class AbstractFileSystemRepository
java.lang.Object
nl.goodbytes.xmpp.xep0363.repository.AbstractFileSystemRepository
- All Implemented Interfaces:
Repository
- Direct Known Subclasses:
DirectoryRepository,TempDirectoryRepository
A repository of files, backed by a (presumably local) file system.
- Author:
- Guus der Kinderen, guus@goodbytes.nl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(SecureUniqueId uuid) protected static longbooleandelete(SecureUniqueId uuid) voiddestroy()getContentType(SecureUniqueId uuid) getInputStream(SecureUniqueId uuid) longgetSize(SecureUniqueId uuid) protected static longgetUsableSpace(Path path) static longgetUsedSpace(Path path) voidprotected abstract Pathvoidpurge()
-
Field Details
-
repository
-
-
Constructor Details
-
AbstractFileSystemRepository
public AbstractFileSystemRepository()
-
-
Method Details
-
initializeRepository
- Throws:
IOException
-
initialize
- Specified by:
initializein interfaceRepository- Throws:
IOException
-
destroy
public void destroy()- Specified by:
destroyin interfaceRepository
-
contains
- Specified by:
containsin interfaceRepository
-
calculateETagHash
- Specified by:
calculateETagHashin interfaceRepository
-
getContentType
- Specified by:
getContentTypein interfaceRepository
-
getSize
- Specified by:
getSizein interfaceRepository
-
getInputStream
- Specified by:
getInputStreamin interfaceRepository- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceRepository- Throws:
IOException
-
delete
- Specified by:
deletein interfaceRepository- Throws:
IOException
-
purge
- Throws:
IOException
-
getUsableSpace
- Throws:
IOException
-
getUsedSpace
- Throws:
IOException
-
delete
- Throws:
IOException
-