Package loci.formats.cache
Class CacheSource
java.lang.Object
loci.formats.cache.CacheSource
- All Implemented Interfaces:
ICacheSource
- Direct Known Subclasses:
ByteArraySource
Superclass of cache sources that retrieve image planes
from a data source (e.g., a file) using Bio-Formats.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCacheSource(String id) Constructs a cache source that draws from the given file.Constructs a cache source from the given Bio-Formats reader. -
Method Summary
-
Field Details
-
reader
Reader from which to draw image planes.
-
-
Constructor Details
-
CacheSource
Constructs a cache source from the given Bio-Formats reader. -
CacheSource
Constructs a cache source that draws from the given file.- Throws:
CacheException
-
-
Method Details
-
getObjectCount
public int getObjectCount()Description copied from interface:ICacheSourceGet the total number of objects that this source can retrieve.- Specified by:
getObjectCountin interfaceICacheSource
-
getObject
Description copied from interface:ICacheSourceGet the object corresponding to the given index.- Specified by:
getObjectin interfaceICacheSource- Throws:
CacheException
-