com.sun.jimi.core
Interface JimiDecoder

All Known Subinterfaces:
JimiRasterDecoder
All Known Implementing Classes:
JimiMultiImageDecoder, JimiDecoderBase

public abstract interface JimiDecoder

Interface for image decoders in Jimi.


Method Summary
 void addCleanupCommand(java.lang.Runnable run)
          Commands to run when decoding has ended.
 ImageSeriesDecodingController initDecoding(JimiImageFactory factory, java.io.InputStream input)
          Initialize the decoder and get an object to control decoding.
 void setFinished()
          Called if no further images will be needed.
 void setProgressListener(ProgressListener listener)
           
 

Method Detail

initDecoding

public ImageSeriesDecodingController initDecoding(JimiImageFactory factory,
                                                  java.io.InputStream input)
Initialize the decoder and get an object to control decoding.
Parameters:
factory - the factory to create JimiImages from
input - the stream to read image data from
Returns:
a controller object

setProgressListener

public void setProgressListener(ProgressListener listener)

setFinished

public void setFinished()
Called if no further images will be needed.

addCleanupCommand

public void addCleanupCommand(java.lang.Runnable run)
Commands to run when decoding has ended.