|
||||||||||
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.out.TiffWriter
public class TiffWriter
TiffWriter is the file format writer for TIFF files.
Field Summary | |
---|---|
protected Vector |
imageCounts
Image counts for each open series. |
protected int |
lastOffset
The last offset written to. |
protected BufferedOutputStream |
out
Current output stream. |
Fields inherited from class loci.formats.FormatWriter |
---|
cm, compression, compressionTypes, fps, initialized, metadataRetrieve |
Fields inherited from class loci.formats.FormatHandler |
---|
currentId, debug, debugLevel, format, statusListeners, suffixes |
Constructor Summary | |
---|---|
TiffWriter()
|
|
TiffWriter(String format,
String[] exts)
|
Method Summary | |
---|---|
boolean |
canDoStacks()
Reports whether the writer can save multiple images to a single file. |
void |
close()
Closes currently open file(s) and frees allocated memory. |
void |
saveImage(Image image,
boolean last)
Saves the given image to the current file. |
void |
saveImage(Image image,
Hashtable ifd,
boolean last)
Saves the given image to the specified (possibly already open) file. |
void |
saveImage(Image image,
Hashtable ifd,
int series,
boolean lastInSeries,
boolean last)
Saves the given image to the specified series in the current file. |
void |
saveImage(Image image,
int series,
boolean lastInSeries,
boolean last)
Saves the given image to the given series in the current file. |
void |
saveImage(String id,
Image image,
Hashtable ifd,
boolean last)
Deprecated. Replaced by saveImage(Image, Hashtable, boolean) |
Methods inherited from class loci.formats.FormatWriter |
---|
canDoStacks, getColorModel, getCompressionTypes, getFramesPerSecond, getMetadataRetrieve, getPixelTypes, getPixelTypes, isSupportedType, isSupportedType, save, saveBytes, saveBytes, setColorModel, setCompression, setFramesPerSecond, setId, setMetadataRetrieve |
Methods inherited from class loci.formats.FormatHandler |
---|
addStatusListener, debug, getFormat, getStatusListeners, getSuffixes, isThisType, isThisType, removeStatusListener, setDebug, setDebugLevel, setId, status, status, status, trace, trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface loci.formats.IFormatHandler |
---|
getFormat, getSuffixes, isThisType, isThisType, setId |
Methods inherited from interface loci.formats.StatusReporter |
---|
addStatusListener, getStatusListeners, removeStatusListener |
Field Detail |
---|
protected int lastOffset
protected BufferedOutputStream out
protected Vector imageCounts
Constructor Detail |
---|
public TiffWriter()
public TiffWriter(String format, String[] exts)
Method Detail |
---|
public void saveImage(Image image, Hashtable ifd, boolean last) throws IOException, FormatException
IOException
FormatException
public void saveImage(Image image, Hashtable ifd, int series, boolean lastInSeries, boolean last) throws IOException, FormatException
IOException
FormatException
public void saveImage(Image image, boolean last) throws FormatException, IOException
IFormatWriter
FormatException
IOException
public void saveImage(Image image, int series, boolean lastInSeries, boolean last) throws FormatException, IOException
IFormatWriter
saveImage
in interface IFormatWriter
saveImage
in class FormatWriter
FormatException
IOException
public boolean canDoStacks()
IFormatWriter
canDoStacks
in interface IFormatWriter
canDoStacks
in class FormatWriter
public void close() throws IOException
IFormatHandler
IOException
public void saveImage(String id, Image image, Hashtable ifd, boolean last) throws IOException, FormatException
saveImage(Image, Hashtable, boolean)
IOException
FormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |