public class StringKeyFileManager extends Object implements FileManager<String>
DirectoryMessageStore
and DirectoryMessageListStore store
classes that keeps all files in a single directory, and keeps a .tmp
directory for temporary files. Note that this differs from the DefaultFileManager
that it does not allow full paths for the key, e.g. cannot contain file separator
in the key string.| Constructor and Description |
|---|
StringKeyFileManager(Path directory) |
| Modifier and Type | Method and Description |
|---|---|
Path |
getFileFor(String key) |
Collection<String> |
initialKeySet() |
Path |
tmpFileFor(String key) |
public Path getFileFor(@Nonnull String key)
getFileFor in interface FileManager<String>public Path tmpFileFor(@Nonnull String key)
tmpFileFor in interface FileManager<String>public Collection<String> initialKeySet()
initialKeySet in interface FileManager<String>Copyright © 2015–2020 morimekta.net. All rights reserved.