public abstract class AbstractFileSystemRepository extends Object implements Repository
| Modifier and Type | Field and Description |
|---|---|
protected Path |
repository |
| Constructor and Description |
|---|
AbstractFileSystemRepository() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculateETagHash(SecureUniqueId uuid) |
boolean |
contains(SecureUniqueId uuid) |
protected static long |
delete(Path path) |
void |
destroy() |
String |
getContentType(SecureUniqueId uuid) |
InputStream |
getInputStream(SecureUniqueId uuid) |
OutputStream |
getOutputStream(SecureUniqueId uuid) |
long |
getSize(SecureUniqueId uuid) |
protected static long |
getUsableSpace(Path path) |
static long |
getUsedSpace(Path path) |
void |
initialize() |
protected abstract Path |
initializeRepository() |
void |
purge() |
protected Path repository
protected abstract Path initializeRepository() throws IOException
IOExceptionpublic void initialize()
throws IOException
initialize in interface RepositoryIOExceptionpublic void destroy()
destroy in interface Repositorypublic boolean contains(SecureUniqueId uuid)
contains in interface Repositorypublic String calculateETagHash(SecureUniqueId uuid)
calculateETagHash in interface Repositorypublic String getContentType(SecureUniqueId uuid)
getContentType in interface Repositorypublic long getSize(SecureUniqueId uuid)
getSize in interface Repositorypublic InputStream getInputStream(SecureUniqueId uuid) throws IOException
getInputStream in interface RepositoryIOExceptionpublic OutputStream getOutputStream(SecureUniqueId uuid) throws IOException
getOutputStream in interface RepositoryIOExceptionpublic void purge()
throws IOException
IOExceptionprotected static long getUsableSpace(Path path) throws IOException
IOExceptionpublic static long getUsedSpace(Path path) throws IOException
IOExceptionprotected static long delete(Path path) throws IOException
IOExceptionCopyright © 2017–2020 Goodbytes. All rights reserved.