public class SubDirectoryCacheFiles extends java.lang.Object implements CacheFiles
CacheFiles implementation that stores all files in sub-directories
right next to the original files.| Constructor and Description |
|---|
SubDirectoryCacheFiles(@NotNull java.lang.String directory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.io.File |
getCacheFile(@NotNull java.io.File file,
@Nullable java.lang.String prefix)
Returns the
File for caching a given file. |
public SubDirectoryCacheFiles(@NotNull
@NotNull java.lang.String directory)
directory - the name of the sub-directories@NotNull
public @NotNull java.io.File getCacheFile(@NotNull
@NotNull java.io.File file,
@Nullable
@Nullable java.lang.String prefix)
CacheFilesFile for caching a given file.getCacheFile in interface CacheFilesfile - the file to cacheprefix - an optional prefix string