Class CacheSource

java.lang.Object
loci.formats.cache.CacheSource
All Implemented Interfaces:
ICacheSource
Direct Known Subclasses:
ByteArraySource

public abstract class CacheSource extends Object implements ICacheSource
Superclass of cache sources that retrieve image planes from a data source (e.g., a file) using Bio-Formats.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected loci.formats.IFormatReader
    Reader from which to draw image planes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a cache source that draws from the given file.
    CacheSource(loci.formats.IFormatReader r)
    Constructs a cache source from the given Bio-Formats reader.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract Object
    getObject(int index)
    Get the object corresponding to the given index.
    int
    Get the total number of objects that this source can retrieve.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • reader

      protected loci.formats.IFormatReader reader
      Reader from which to draw image planes.
  • Constructor Details

    • CacheSource

      public CacheSource(loci.formats.IFormatReader r)
      Constructs a cache source from the given Bio-Formats reader.
    • CacheSource

      public CacheSource(String id) throws CacheException
      Constructs a cache source that draws from the given file.
      Throws:
      CacheException
  • Method Details