|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectloci.formats.FormatHandler
loci.formats.FormatWriter
loci.formats.ImageWriter
ImageWriter is master file format writer for all supported formats.
| Field Summary | |
protected int |
index
Current form index. |
protected static Class[] |
writerClasses
List of writer classes. |
protected FormatWriter[] |
writers
List of supported file format writers. |
| Fields inherited from class loci.formats.FormatWriter |
fps |
| Fields inherited from class loci.formats.FormatHandler |
chooser, currentId, filters, format, suffixes |
| Constructor Summary | |
ImageWriter()
Constructs a new ImageWriter. |
|
| Method Summary | |
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. |
FormatWriter |
getWriter(Class c)
Gets the file format writer instance matching the given class. |
FormatWriter |
getWriter(String id)
Gets the writer used to save the given file. |
protected void |
initFile(String id)
Initializes the given image file. |
static void |
main(String[] args)
|
void |
save(String id,
Image image,
boolean last)
Saves the given image to the specified (possibly already open) file. |
void |
testConvert(String[] args)
A utility method for converting a file from the command line. |
| Methods inherited from class loci.formats.FormatWriter |
getFramesPerSecond, save, setFramesPerSecond |
| 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 Class[] writerClasses
protected FormatWriter[] writers
protected int index
| Constructor Detail |
public ImageWriter()
| Method Detail |
public String getFormat(String id)
throws FormatException,
IOException
FormatException
IOException
public FormatWriter getWriter(String id)
throws FormatException,
IOException
FormatException
IOExceptionpublic FormatWriter getWriter(Class c)
public void save(String id,
Image image,
boolean last)
throws FormatException,
IOException
save in class FormatWriterFormatException
IOException
public void testConvert(String[] args)
throws FormatException,
IOException
testConvert in class FormatWriterFormatException
IOExceptionprotected void createFilters()
createFilters in class FormatHandler
protected void initFile(String id)
throws FormatException,
IOException
FormatException
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 | |||||||||