com.sun.jimi.core.decoder.tga
Class TGADecoder

java.lang.Object
  |
  +--com.sun.jimi.core.util.ProgressMonitorSupport
        |
        +--com.sun.jimi.core.compat.JimiDecoderBase
              |
              +--com.sun.jimi.core.decoder.tga.TGADecoder

public class TGADecoder
extends JimiDecoderBase

Image decoder for image data stored in TGA file format. Currently only the original TGA file format is supported. This is because the new TGA format has data at the end of the file, getting to the end of a file in an InputStream orient environment presents several difficulties which are avoided at the moment. This is a simple decoder and is only setup to load a single image from the input stream


Fields inherited from class com.sun.jimi.core.compat.JimiDecoderBase
busyDecoding, cleanupCommands, currentController, currentHandle, decodingLock, error, ERROR, factory, finishedDecoding, IMAGEAVAIL, INFOAVAIL, input, jimiImage, MOREIMAGES, MULTIIMAGE, UNKNOWNCOUNT
 
Fields inherited from class com.sun.jimi.core.util.ProgressMonitorSupport
currentProgressLevel, progressListener
 
Constructor Summary
TGADecoder()
           
 
Method Summary
 boolean driveDecoder()
           
 void freeDecoder()
           
 AdaptiveRasterImage getJimiImage()
           
 int getState()
           
 void initDecoder(java.io.InputStream in, AdaptiveRasterImage ji)
           
 
Methods inherited from class com.sun.jimi.core.compat.JimiDecoderBase
addCleanupCommand, createAdaptiveRasterImage, createAdaptiveRasterImage, decodeNextImage, finishedDecode, getCapabilities, getNumberOfImages, initDecoding, jimiImageCreated, mustWaitForOptions, run, setFinished, skipImage, usesChanneledData, waitReady
 
Methods inherited from class com.sun.jimi.core.util.ProgressMonitorSupport
setProgress, setProgressListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TGADecoder

public TGADecoder()
Method Detail

initDecoder

public void initDecoder(java.io.InputStream in,
                        AdaptiveRasterImage ji)
                 throws JimiException
Overrides:
initDecoder in class JimiDecoderBase

driveDecoder

public boolean driveDecoder()
                     throws JimiException
Overrides:
driveDecoder in class JimiDecoderBase

freeDecoder

public void freeDecoder()
                 throws JimiException
Overrides:
freeDecoder in class JimiDecoderBase

getState

public int getState()
Overrides:
getState in class JimiDecoderBase

getJimiImage

public AdaptiveRasterImage getJimiImage()