public class ThumbnailService extends AbstractFileSystemService
FILES_PATH, PIXELS_PATH, ROOT_DEFAULT, THUMBNAILS_PATH
Constructor and Description |
---|
ThumbnailService(String path)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
createThumbnail(ome.model.display.Thumbnail thumbnail,
byte[] buf)
Creates thumbnail on disk using byte array
|
byte[] |
getThumbnail(ome.model.display.Thumbnail thumbnail)
Return byte array of Thumbnail
|
byte[] |
getThumbnail(ome.model.display.Thumbnail thumbnail,
byte[] buf)
Return byte array of Thumbnail, providing byte array
|
boolean |
getThumbnailExists(ome.model.display.Thumbnail thumbnail)
Returns whether or not a thumbnail exists on disk.
|
long |
getThumbnailLength(ome.model.display.Thumbnail thumbnail)
Returns length of Thumbnail on disk
|
FileOutputStream |
getThumbnailOutputStream(ome.model.display.Thumbnail thumbnail)
Return FileOutputStream of Thumbnail
|
void |
removeThumbnails(List<Long> thumbnailIds)
Removes files from data repository based on a parameterized List of Long
thumbnail ids
|
createSubpath, getFilesPath, getPixelsPath, getThumbnailPath
public ThumbnailService(String path)
path
- public void createThumbnail(ome.model.display.Thumbnail thumbnail, byte[] buf) throws IOException
thumbnail
- buf
- IOException
public long getThumbnailLength(ome.model.display.Thumbnail thumbnail)
thumbnail
- public byte[] getThumbnail(ome.model.display.Thumbnail thumbnail) throws IOException
thumbnail
- IOException
public byte[] getThumbnail(ome.model.display.Thumbnail thumbnail, byte[] buf) throws IOException
thumbnail
- buf
- IOException
public FileOutputStream getThumbnailOutputStream(ome.model.display.Thumbnail thumbnail) throws IOException
thumbnail
- IOException
public boolean getThumbnailExists(ome.model.display.Thumbnail thumbnail) throws IOException
thumbnail
- The thumbnail metadata.IOException
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.