|
||||||||||
| 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.ImageReader
ImageReader is master file format reader for all supported formats.
| Field Summary | |
protected int |
index
Current form index. |
protected static Class[] |
readerClasses
List of reader classes. |
protected FormatReader[] |
readers
List of supported file format readers. |
| 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 | |
ImageReader()
Constructs a new ImageReader. |
|
| Method Summary | |
void |
close()
Closes any open files. |
protected void |
createFilters()
Creates JFileChooser file filters for this file format. |
String |
getFormat(String id)
Gets a string describing the file format for the given file. |
int |
getImageCount(String id)
Determines the number of images in the given image 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. |
FormatReader |
getReader(Class c)
Gets the file format reader instance matching the given class. |
FormatReader |
getReader(String id)
Gets the reader used to open the given file. |
protected void |
initFile(String id)
Initializes the given image file. |
boolean |
isThisType(byte[] block)
Checks if the given block is a valid header for an image file. |
boolean |
isThisType(String name)
Checks if the given string is a valid filename for any supported format. |
static void |
main(String[] args)
|
BufferedImage[] |
open(String id)
Opens an existing file from the given filename. |
BufferedImage |
open(String id,
int no)
Obtains the specified image from the given image 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static Class[] readerClasses
protected FormatReader[] readers
protected int index
| Constructor Detail |
public ImageReader()
| Method Detail |
public String getFormat(String id)
throws FormatException,
IOException
FormatException
IOException
public FormatReader getReader(String id)
throws FormatException,
IOException
FormatException
IOExceptionpublic FormatReader getReader(Class c)
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
public BufferedImage[] open(String id)
throws FormatException,
IOException
open in class FormatReaderFormatException
IOException
public Object getOMENode(String id)
throws FormatException,
IOException
getOMENode in class FormatReaderFormatException
IOException
public Object getMetadataValue(String id,
String field)
throws FormatException,
IOException
getMetadataValue in class FormatReaderfield - the name associated with the metadata field
FormatException
IOException
public Hashtable getMetadata(String id)
throws FormatException,
IOException
getMetadata in class FormatReaderid - the filename
FormatException
IOException
public boolean testRead(String[] args)
throws FormatException,
IOException
testRead in class FormatReaderFormatException
IOExceptionprotected void createFilters()
createFilters in class FormatReaderpublic boolean isThisType(String name)
isThisType in class FormatHandler
protected void initFile(String id)
throws FormatException,
IOException
initFile in class FormatReaderFormatException
IOException
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 | |||||||||