Package com.github.euler.preview
Class PreviewCacheStorageStrategy
- java.lang.Object
-
- com.github.euler.preview.PreviewCacheStorageStrategy
-
- All Implemented Interfaces:
StorageStrategy
public class PreviewCacheStorageStrategy extends Object implements StorageStrategy
-
-
Constructor Summary
Constructors Constructor Description PreviewCacheStorageStrategy(File root, String suffix, int width, int height, String format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIcreateFile()URIcreateFile(String suffix)URIcreateFile(String baseName, String hash, String suffix)URIcreateFile(URI uri)URIcreateFile(URI uri, String suffix)URIcreateFileWithName(String name)protected Stringformat(String fileName, String hash, String extension)
-
-
-
Method Detail
-
createFile
public URI createFile(URI uri)
- Specified by:
createFilein interfaceStorageStrategy
-
createFile
public URI createFile(String suffix)
- Specified by:
createFilein interfaceStorageStrategy
-
createFile
public URI createFile(URI uri, String suffix)
- Specified by:
createFilein interfaceStorageStrategy
-
createFile
public URI createFile()
- Specified by:
createFilein interfaceStorageStrategy
-
createFileWithName
public URI createFileWithName(String name)
- Specified by:
createFileWithNamein interfaceStorageStrategy
-
-