public interface Store
Store represents a physical dossier directory, it allows to set and get contents from dossier files.
| Modifier and Type | Method and Description |
|---|---|
List<byte[]> |
getAllContents() |
byte[] |
getContents(String code) |
String |
getFileMimeType(String code) |
Path |
getFilePath(String key) |
Store |
getNestedFileStore(String code) |
int |
getObjectsCount()
Returns count of dirs/files in store.
|
boolean |
isExist(String code) |
LocalDateTime |
lastModified(String code)
Last modification date
FIXME лучше использовать LocalDateTime
|
void |
setContents(String code,
byte[] contents) |
boolean isExist(String code)
void setContents(String code, byte[] contents) throws IOException
IOExceptionbyte[] getContents(String code) throws IOException
code - IOExceptionList<byte[]> getAllContents()
int getObjectsCount()
LocalDateTime lastModified(String code)
code - String getFileMimeType(String code) throws IOException
IOExceptionCopyright © 2020. All rights reserved.