public abstract class AbstractThumbnailManager extends Object implements ThumbnailManager
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractThumbnailManager(File directory)
Create a new abstract thumbnail manager with the specified root thumbnail directory.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
createLargeThumbnail(URI uri,
long modificationTime)
Create and return a large size (256x256 pixel) thumbnail image for the specified URI.
|
BufferedImage |
createThumbnail(URI uri,
long modificationTime)
Create and return a normal size (128x128 pixel) thumbnail image for the specified URI.
|
protected AbstractThumbnailManager(File directory)
directory - root thumbnail directory, must not be nullpublic final BufferedImage createThumbnail(URI uri, long modificationTime) throws IOException
ThumbnailManagercreateThumbnail in interface ThumbnailManageruri - URI for the original image, must not be nullmodificationTime - modification time for the original imageIOException - if an I/O error occurspublic final BufferedImage createLargeThumbnail(URI uri, long modificationTime) throws IOException
ThumbnailManagercreateLargeThumbnail in interface ThumbnailManageruri - URI for the original image, must not be nullmodificationTime - modification time for the original imageIOException - if an I/O error occursCopyright © 2013–2019 dishevelled.org. All rights reserved.