public class DirectoryCacheFiles extends java.lang.Object implements CacheFiles
CacheFiles
implementation that stores all files in a flat
directory.Constructor and Description |
---|
DirectoryCacheFiles(java.io.File directory,
java.lang.String suffix)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getCacheFile(java.io.File file,
java.lang.String prefix)
Returns the
File for caching a given file. |
public DirectoryCacheFiles(@NotNull java.io.File directory, @Nullable java.lang.String suffix)
directory
- the cache directorysuffix
- an optional suffix string@NotNull public java.io.File getCacheFile(@NotNull java.io.File file, @Nullable java.lang.String prefix)
File
for caching a given file.getCacheFile
in interface CacheFiles
file
- the file to cacheprefix
- an optional prefix string