|
||||||||||
| 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.BaseTiffReader
BaseTiffReader is the superclass for file format readers compatible with or derived from the TIFF 6.0 file format.
| Field Summary | |
protected Hashtable[] |
ifds
List of IFDs for the current TIFF. |
protected RandomAccessFile |
in
Random access file for the current TIFF. |
protected int |
numImages
Number of images in the current TIFF stack. |
| 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 | |
BaseTiffReader(String name,
String suffix)
Constructs a new BaseTiffReader. |
|
BaseTiffReader(String name,
String[] suffixes)
Constructs a new BaseTiffReader. |
|
| Method Summary | |
void |
close()
Closes any open files. |
int |
getImageCount(String id)
Determines the number of images in the given TIFF file. |
int[] |
getTiffDimensions(String id)
Gets the dimensions of the given (possibly multi-page) TIFF file. |
protected void |
initFile(String id)
Initializes the given TIFF file. |
protected void |
initMetadata()
Populates the metadata hashtable and OME root node. |
protected void |
initOMEMetadata()
Parses OME-XML metadata. |
protected void |
initStandardMetadata()
Parses standard metadata. |
boolean |
isThisType(byte[] block)
Checks if the given block is a valid header for a TIFF file. |
BufferedImage |
open(String id,
int no)
Obtains the specified image from the given TIFF file. |
protected void |
put(String key,
boolean value)
|
protected void |
put(String key,
byte value)
|
protected void |
put(String key,
char value)
|
protected void |
put(String key,
double value)
|
protected void |
put(String key,
float value)
|
protected void |
put(String key,
Hashtable ifd,
int tag)
|
protected void |
put(String key,
int value)
|
protected void |
put(String key,
long value)
|
protected void |
put(String key,
Object value)
|
protected void |
put(String key,
short value)
|
protected void |
putInt(String key,
Hashtable ifd,
int tag)
|
| Methods inherited from class loci.formats.FormatReader |
createFilters, getMetadata, getMetadataValue, getOMENode, open, testRead |
| Methods inherited from class loci.formats.FormatHandler |
getFileChooser, getFileFilters, getFormat, getSuffixes, isThisType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected RandomAccessFile in
protected Hashtable[] ifds
protected int numImages
| Constructor Detail |
public BaseTiffReader(String name,
String suffix)
public BaseTiffReader(String name,
String[] suffixes)
| Method Detail |
public int[] getTiffDimensions(String id)
throws FormatException,
IOException
FormatException
IOExceptionprotected void initMetadata()
protected void initStandardMetadata()
protected void initOMEMetadata()
public boolean isThisType(byte[] block)
isThisType in class FormatReader
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
IOException
protected void put(String key,
Object value)
protected void put(String key,
int value)
protected void put(String key,
boolean value)
protected void put(String key,
byte value)
protected void put(String key,
char value)
protected void put(String key,
double value)
protected void put(String key,
float value)
protected void put(String key,
long value)
protected void put(String key,
short value)
protected void put(String key,
Hashtable ifd,
int tag)
protected void putInt(String key,
Hashtable ifd,
int tag)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||