Class LEOReader

All Implemented Interfaces:
Closeable, AutoCloseable, ICompressedTileReader, IFormatHandler, IFormatReader, IMetadataConfigurable, IPyramidHandler

public class LEOReader extends BaseTiffReader
LEOReader is the file format reader for LEO EM files.
Author:
Melissa Linkert melissa at glencoesoftware.com
  • Field Details

    • LEO_TAG

      public static final int LEO_TAG
      See Also:
    • DATE_FORMATS

      private static final String[] DATE_FORMATS
    • TAG_ENCODING

      private static final String TAG_ENCODING
      See Also:
    • xSize

      private ome.units.quantity.Length xSize
    • date

      private String date
    • time

      private String time
    • workingDistance

      private ome.units.quantity.Length workingDistance
  • Constructor Details

    • LEOReader

      public LEOReader()
      Constructs a new LEO reader.
  • Method Details

    • isThisType

      public boolean isThisType(loci.common.RandomAccessInputStream stream) throws IOException
      Description copied from interface: IFormatReader
      Checks if the given stream is a valid stream for this file format. The number of bytes read is format-dependent.
      Specified by:
      isThisType in interface IFormatReader
      Overrides:
      isThisType in class MinimalTiffReader
      Parameters:
      stream - A RandomAccessInputStream representing the file to check. The first byte in the stream is assumed to be the first byte in the file.
      Returns:
      true if the file represented by the stream can be read by this reader; false otherwise.
      Throws:
      IOException
    • initTiffParser

      protected void initTiffParser()
      Description copied from class: MinimalTiffReader
      Reinitialize the underlying TiffParser.
      Overrides:
      initTiffParser in class MinimalTiffReader
    • initStandardMetadata

      protected void initStandardMetadata() throws FormatException, IOException
      Description copied from class: BaseTiffReader
      Parses standard metadata. NOTE: Absolutely no calls to the metadata store should be made in this method or methods that override this method. Data will be overwritten if you do so.
      Overrides:
      initStandardMetadata in class BaseTiffReader
      Throws:
      FormatException
      IOException
    • initMetadataStore

      protected void initMetadataStore() throws FormatException
      Description copied from class: BaseTiffReader
      Populates the metadata store using the data parsed in BaseTiffReader.initStandardMetadata() along with some further parsing done in the method itself. All calls to the active MetadataStore should be made in this method and only in this method. This is especially important for sub-classes that override the getters for pixel set array size, etc.
      Overrides:
      initMetadataStore in class BaseTiffReader
      Throws:
      FormatException
    • parseKeyValue

      private String parseKeyValue(String string, String separator)