|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectloci.formats.FormatHandler
loci.formats.FormatReader
Abstract superclass of all biological file format readers.
| Field Summary | |
protected static boolean |
DEBUG
Debugging flag. |
protected static int |
DEBUG_LEVEL
Debugging level. |
protected Hashtable |
metadata
Hashtable containing metadata key/value pairs. |
protected Object |
ome
OME root node for OME-XML metadata. |
| Fields inherited from class loci.formats.FormatHandler |
chooser, currentId, filters, format, suffixes |
| Constructor Summary | |
FormatReader(String format,
String suffix)
Constructs a format reader with the given name and default suffix. |
|
FormatReader(String format,
String[] suffixes)
Constructs a format reader with the given name and default suffixes. |
|
| Method Summary | |
abstract void |
close()
Closes the currently open file. |
protected void |
createFilters()
Creates JFileChooser file filters for this file format. |
abstract int |
getImageCount(String id)
Determines the number of images in the given file. |
Hashtable |
getMetadata(String id)
Obtains the hashtable containing the metadata field/value pairs from the given file. |
Object |
getMetadataValue(String id,
String field)
Obtains the specified metadata field's value for the given file. |
Object |
getOMENode(String id)
Obtains a loci.ome.xml.OMENode object representing the file's metadata as an OME-XML DOM structure. |
protected void |
initFile(String id)
Initializes the given file (parsing header information, etc.). |
abstract boolean |
isThisType(byte[] block)
Checks if the given block is a valid header for this file format. |
BufferedImage[] |
open(String id)
Opens an existing file from the given filename. |
abstract BufferedImage |
open(String id,
int no)
Obtains the specified image from the given file. |
boolean |
testRead(String[] args)
A utility method for test reading a file from the command line, and displaying the results in a simple display. |
| 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 static final boolean DEBUG
protected static final int DEBUG_LEVEL
protected Hashtable metadata
protected Object ome
| Constructor Detail |
public FormatReader(String format,
String suffix)
public FormatReader(String format,
String[] suffixes)
| Method Detail |
public abstract boolean isThisType(byte[] block)
public abstract int getImageCount(String id)
throws FormatException,
IOException
FormatException
IOException
public abstract BufferedImage open(String id,
int no)
throws FormatException,
IOException
FormatException
IOException
public abstract void close()
throws FormatException,
IOException
FormatException
IOException
protected void initFile(String id)
throws FormatException,
IOException
FormatException
IOException
public BufferedImage[] open(String id)
throws FormatException,
IOException
FormatException
IOException
public Object getOMENode(String id)
throws FormatException,
IOException
FormatException
IOException
public Object getMetadataValue(String id,
String field)
throws FormatException,
IOException
field - the name associated with the metadata field
FormatException
IOException
public Hashtable getMetadata(String id)
throws FormatException,
IOException
id - the filename
FormatException
IOException
public boolean testRead(String[] args)
throws FormatException,
IOException
FormatException
IOExceptionprotected void createFilters()
createFilters in class FormatHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||