com.sun.jimi.core.decoder.xbm
Class XBMDecoder
com.sun.jimi.core.decoder.xbm.XBMDecoder
- public class XBMDecoder
Decoder for XPM X11 bitmaps.
parser_
protected XbmParser parser_
- XPM data parser.
jimiImage_
protected AdaptiveRasterImage jimiImage_
- JimiImage being written to.
state_
protected int state_
- State of decoder.
input_
protected java.io.InputStream input_
pixels_
protected byte[] pixels_
XBMDecoder
public XBMDecoder()
initDecoder
public void initDecoder(java.io.InputStream in,
AdaptiveRasterImage ji)
- Initializes the decoder without doing any parsing.
- Parameters:
in
- The input stream to read XPM data from.ji
- The JimiImage to write information to.
driveDecoder
public boolean driveDecoder()
throws JimiException
- Decode the image.
- Returns:
- False if there image loading has come to an end.
getState
public int getState()
freeDecoder
public void freeDecoder()
getJimiImage
public AdaptiveRasterImage getJimiImage()