APIdia Launch Partner
Top Description Fields Constructors Methods
sun.awt.image

public Class JPEGImageDecoder

extends ImageDecoder
Class Inheritance
Annotations
@SuppressWarnings:restricted
Imports
java.util.Vector, .Hashtable, java.io.InputStream, .IOException, java.awt.image.*

JPEG Image converter
Author
Jim Graham

Field Summary

Modifier and TypeField and Description
private static ColorModel
private ColorModel
private static ColorModel
private static final int
hintflags

The ImageConsumer hints flag for a JPEG image.

private static final Class<?>
pack-priv Hashtable<String, Object>
private static ColorModel
Inherited from sun.awt.image.ImageDecoder:
abortedfeederfinishedinputnextqueuesource

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
error(String s1)

An error has occurred.

private static native void
initIDs(Class<?> InputStreamClass)

public void
produceImage()

Implements abstract sun.awt.image.ImageDecoder.produceImage.

produce an image from the stream.

private native void
readImage(InputStream is, byte[] buf)

public boolean
sendHeaderInfo(int width, int height, boolean gray, boolean hasalpha, boolean multipass)

public boolean
sendPixels(int[] pixels, int y)

public boolean
sendPixels(byte[] pixels, int y)

Inherited from sun.awt.image.ImageDecoder:
abortcloseheaderCompleteimageCompleteisConsumernextConsumerremoveConsumersetColorModelsetDimensionssetHintssetPixelssetPixelssetProperties

Field Detail

ARGBcolormodelback to summary
private static ColorModel ARGBcolormodel
colormodelback to summary
private ColorModel colormodel
Graycolormodelback to summary
private static ColorModel Graycolormodel
hintflagsback to summary
private static final int hintflags

The ImageConsumer hints flag for a JPEG image.

InputStreamClassback to summary
private static final Class<?> InputStreamClass
propsback to summary
pack-priv Hashtable<String, Object> props
RGBcolormodelback to summary
private static ColorModel RGBcolormodel

Constructor Detail

JPEGImageDecoderback to summary
public JPEGImageDecoder(InputStreamImageSource src, InputStream is)

Method Detail

errorback to summary
private static void error(String s1) throws ImageFormatException

An error has occurred. Throw an exception.

initIDsback to summary
private static native void initIDs(Class<?> InputStreamClass)
produceImageback to summary
public void produceImage() throws IOException, ImageFormatException

Implements abstract sun.awt.image.ImageDecoder.produceImage.

produce an image from the stream.

readImageback to summary
private native void readImage(InputStream is, byte[] buf) throws ImageFormatException, IOException
sendHeaderInfoback to summary
public boolean sendHeaderInfo(int width, int height, boolean gray, boolean hasalpha, boolean multipass)
sendPixelsback to summary
public boolean sendPixels(int[] pixels, int y)
sendPixelsback to summary
public boolean sendPixels(byte[] pixels, int y)