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(UUID uuid) |
boolean |
contains(UUID uuid) |
protected static long |
delete(Path path) |
void |
destroy() |
String |
getContentType(UUID uuid) |
InputStream |
getInputStream(UUID uuid) |
OutputStream |
getOutputStream(UUID uuid) |
long |
getSize(UUID 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()
throws IOException
destroy in interface RepositoryIOExceptionpublic boolean contains(UUID uuid) throws IOException
contains in interface RepositoryIOExceptionpublic String calculateETagHash(UUID uuid) throws IOException
calculateETagHash in interface RepositoryIOExceptionpublic String getContentType(UUID uuid) throws IOException
getContentType in interface RepositoryIOExceptionpublic long getSize(UUID uuid) throws IOException
getSize in interface RepositoryIOExceptionpublic InputStream getInputStream(UUID uuid) throws IOException
getInputStream in interface RepositoryIOExceptionpublic OutputStream getOutputStream(UUID 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–2018 Goodbytes. All rights reserved.