|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectloci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.LeicaReader
LeicaReader is the file format reader for Leica files.
| Field Summary | |
protected String[] |
files
Array of image file names. |
protected Hashtable[] |
headerIFDs
Array of IFD-like structures containing metadata. |
protected RandomAccessFile |
in
Current file. |
protected boolean |
littleEndian
Flag indicating whether current file is little endian. |
protected int |
numImages
Number of images in the dataset. |
protected TiffReader |
tiff
Helper reader. |
| Fields inherited from class loci.formats.FormatReader |
DEBUG, DEBUG_LEVEL, metadata, ome |
| Fields inherited from class loci.formats.FormatHandler |
chooser, currentId, filters, format, suffixes |
| Constructor Summary | |
LeicaReader()
Constructs a new Leica reader. |
|
| Method Summary | |
void |
close()
Closes any open files. |
int |
getImageCount(String id)
Determines the number of images in the given Leica file. |
protected void |
initFile(String id)
Initializes the given Leica file. |
protected void |
initMetadata()
Populates the metadata hashtable and OME root node. |
boolean |
isThisType(byte[] block)
Checks if the given block is a valid header for a Leica file. |
boolean |
isThisType(String name)
Checks if the given string is a valid filename for a Leica file. |
static void |
main(String[] args)
|
BufferedImage |
open(String id,
int no)
Obtains the specified image from the given Leica file. |
protected String |
stripString(String toStrip)
The Leica format is stupid and stores each String as a character array of twice the required size, with a space at every other position. |
| Methods inherited from class loci.formats.FormatReader |
createFilters, getMetadata, getMetadataValue, getOMENode, open, testRead |
| Methods inherited from class loci.formats.FormatHandler |
getFileChooser, getFileFilters, getFormat, getSuffixes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected RandomAccessFile in
protected boolean littleEndian
protected Hashtable[] headerIFDs
protected TiffReader tiff
protected int numImages
protected String[] files
| Constructor Detail |
public LeicaReader()
| Method Detail |
public boolean isThisType(byte[] block)
isThisType in class FormatReaderpublic boolean isThisType(String name)
isThisType in class FormatHandler
public int getImageCount(String id)
throws FormatException,
IOException
getImageCount in class FormatReaderFormatException
IOException
public BufferedImage open(String id,
int no)
throws FormatException,
IOException
open in class FormatReaderFormatException
IOException
public void close()
throws FormatException,
IOException
close in class FormatReaderFormatException
IOException
protected void initFile(String id)
throws FormatException,
IOException
initFile in class FormatReaderFormatException
IOExceptionprotected void initMetadata()
protected String stripString(String toStrip)
public static void main(String[] args)
throws FormatException,
IOException
FormatException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||