com.sun.jimi.core
Class JimiMultiImageRasterDecoder
java.lang.Object
|
+--com.sun.jimi.core.util.ProgressMonitorSupport
|
+--com.sun.jimi.core.JimiRasterDecoderSupport
|
+--com.sun.jimi.core.JimiMultiImageRasterDecoder
- public abstract class JimiMultiImageRasterDecoder
- extends JimiRasterDecoderSupport
Base class providing support for JimiDecoders for multi-image formats.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
currentDecodingController
protected JimiDecodingController currentDecodingController
currentHandle
protected JimiImageHandle currentHandle
controller
protected com.sun.jimi.core.MImageSeriesDecodingController controller
error
protected boolean error
- set to true if an error prevents decoding so that no further operations will be made
busy
protected boolean busy
- true while an image is being decoded
JimiMultiImageRasterDecoder
public JimiMultiImageRasterDecoder()
initDecoding
public ImageSeriesDecodingController initDecoding(JimiImageFactory factory,
java.io.InputStream input)
initNextDecoding
protected JimiDecodingController initNextDecoding()
- Initialize decoding of the next image.
driveDecoding
public void driveDecoding()
- Drive decoding of an image frame.
doInitNextDecoding
public abstract MutableJimiRasterImage doInitNextDecoding(JimiImageFactory factory,
java.io.InputStream input)
throws JimiException,
java.io.IOException
- Initialize decoding by reading headers and creating the image representation.
The image should not be populated with any pixels in this method.
- Parameters:
factory
- the factory from which to create the imageinput
- the stream to read image data from- Throws:
- JimiException - if the data from the stream is invalid or cannot be handled
- java.io.IOException - if an error is encountered trying to read from the stream
doNextImageDecode
public abstract void doNextImageDecode()
throws JimiException,
java.io.IOException
- Populate the image created in
doInitDecoding
with
pixel data.
doSkipNextImage
public abstract void doSkipNextImage()
throws JimiException,
java.io.IOException
- Skip the next image int the file.
hasMoreImages
public abstract boolean hasMoreImages()
- Check whether there are more images in the file to decoder.
setJimiImage
protected void setJimiImage(MutableJimiRasterImage jimiImage)
getJimiImageFactory
public JimiImageFactory getJimiImageFactory()
- Get the factory for creating JimiImages from.
- Overrides:
- getJimiImageFactory in class JimiRasterDecoderSupport
setProgress
public void setProgress(int progressLevel)
- Set the progress level.
- Parameters:
progressLevel
- the level of progress, between 0 and 1000 inclusive- Overrides:
- setProgress in class ProgressMonitorSupport
getInput
public java.io.InputStream getInput()
- Get the stream to read image data from.
- Overrides:
- getInput in class JimiRasterDecoderSupport
setBusy
protected void setBusy(boolean busy)
waitReady
protected void waitReady()