Package net.sf.gridarta.model.io
Class SubDirectoryCacheFiles
- java.lang.Object
-
- net.sf.gridarta.model.io.SubDirectoryCacheFiles
-
- All Implemented Interfaces:
CacheFiles
public class SubDirectoryCacheFiles extends java.lang.Object implements CacheFiles
ACacheFilesimplementation that stores all files in sub-directories right next to the original files.
-
-
Constructor Summary
Constructors Constructor Description SubDirectoryCacheFiles(@NotNull java.lang.String directory)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.io.FilegetCacheFile(@NotNull java.io.File file, @Nullable java.lang.String prefix)Returns theFilefor caching a given file.
-
-
-
Method Detail
-
getCacheFile
@NotNull public @NotNull java.io.File getCacheFile(@NotNull @NotNull java.io.File file, @Nullable @Nullable java.lang.String prefix)Description copied from interface:CacheFilesReturns theFilefor caching a given file.- Specified by:
getCacheFilein interfaceCacheFiles- Parameters:
file- the file to cacheprefix- an optional prefix string- Returns:
- the file for caching
-
-