Top Description Inners Fields Constructors Methods
sun.awt.image

public Class PNGImageDecoder

Additional top-level class in compilation unit: PNGFilterInputStream.

extends ImageDecoder
Class Inheritance
Imports
java.io.*, java.util.*, java.util.zip.*, java.awt.image.*, java.awt.Color

PNG - Portable Network Graphics - image file reader. See RFC2083 for details.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public class

Field Summary

Modifier and TypeField and Description
private static final int
private byte[]
private int
private static final int
private static final byte[]
private static final byte[]
private byte[]
private static boolean
private static final int
pack-priv int
pack-priv int
pack-priv int
pack-priv int
private ColorModel
private static final byte[]
private static final int
private int
private int
private static final int[]
private int
private static final int
private int
private static final int
private byte[]
private static ColorModel[]
private int
private static final int
private static final int
private static final int
private static final int
pack-priv byte[]
pack-priv PNGFilterInputStream
private int
pack-priv int
private static final int
private static final int
private static final int
pack-priv int
private Hashtable<String, Object>
private byte[]
private static final byte[]
private static final int
pack-priv boolean
private static final byte[]
private static final byte[]
private static final byte[]
private static final int
private static final int
private int
private byte[]
private static final int
pack-priv InputStream
private int
private static final int
Inherited from sun.awt.image.ImageDecoder:
abortedfeederfinishedinputnextqueuesource

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
crc(byte[] buf, int offset, int len)

private void
fill()

private void
filterRow(byte[] rowByteBuffer, byte[] prevRow, int rowFilter, int rowByteWidth, int bytesPerSample)

private int
getByte(int pos)

public static boolean
private boolean
pack-priv boolean
private int
getInt(int pos)

private int
getShort(int pos)

protected boolean
handleChunk(int key, byte[] buf, int st, int len)

private boolean
need(int n)

private void
pngassert(boolean b)

public void
private void
property(String key, Object value)

private void
property(String key, float value)

private void
private boolean
sendPixels(int x, int y, int w, int h, int[] pixels, int offset, int pixlength)

private boolean
sendPixels(int x, int y, int w, int h, byte[] pixels, int offset, int pixlength)

public static void
setCheckCRC(boolean c)

private static int
update_crc(int crc, byte[] buf, int offset, int len)

protected void
wrc(int c)

protected void
wrk(int n)

Inherited from sun.awt.image.ImageDecoder:
abortcloseheaderCompleteimageCompleteisConsumernextConsumerremoveConsumersetColorModelsetDimensionssetHintssetPixelssetPixelssetProperties

Field Detail

ALPHAback to summary
private static final int ALPHA
alpha_mapback to summary
private byte[] alpha_map
bitDepthback to summary
private int bitDepth
bKGDChunkback to summary
private static final int bKGDChunk
blockHeightback to summary
private static final byte[] blockHeight
blockWidthback to summary
private static final byte[] blockWidth
blue_mapback to summary
private byte[] blue_map
checkCRCback to summary
private static boolean checkCRC
cHRMChunkback to summary
private static final int cHRMChunk
chunkCRCback to summary
pack-priv int chunkCRC
chunkKeyback to summary
pack-priv int chunkKey
chunkLengthback to summary
pack-priv int chunkLength
chunkStartback to summary
pack-priv int chunkStart
cmback to summary
private ColorModel cm
colIncrementback to summary
private static final byte[] colIncrement
COLORback to summary
private static final int COLOR
colorTypeback to summary
private int colorType
compressionMethodback to summary
private int compressionMethod
crc_tableback to summary
private static final int[] crc_table
filterMethodback to summary
private int filterMethod
gAMAChunkback to summary
private static final int gAMAChunk
gammaback to summary
private int gamma
GRAYback to summary
private static final int GRAY
green_mapback to summary
private byte[] green_map
greyModelsback to summary
private static ColorModel[] greyModels
heightback to summary
private int height
hISTChunkback to summary
private static final int hISTChunk
IDATChunkback to summary
private static final int IDATChunk
IENDChunkback to summary
private static final int IENDChunk
IHDRChunkback to summary
private static final int IHDRChunk
inbufback to summary
pack-priv byte[] inbuf
inputStreamback to summary
pack-priv PNGFilterInputStream inputStream
interlaceMethodback to summary
private int interlaceMethod
limitback to summary
pack-priv int limit
PALETTEback to summary
private static final int PALETTE
pHYsChunkback to summary
private static final int pHYsChunk
PLTEChunkback to summary
private static final int PLTEChunk
posback to summary
pack-priv int pos
propertiesback to summary
private Hashtable<String, Object> properties
red_mapback to summary
private byte[] red_map
rowIncrementback to summary
private static final byte[] rowIncrement
sBITChunkback to summary
private static final int sBITChunk
seenEOFback to summary
pack-priv boolean seenEOF
signatureback to summary
private static final byte[] signature
startingColback to summary
private static final byte[] startingCol
startingRowback to summary
private static final byte[] startingRow
tEXtChunkback to summary
private static final int tEXtChunk
tIMEChunkback to summary
private static final int tIMEChunk
transparentPixelback to summary
private int transparentPixel
transparentPixel_16back to summary
private byte[] transparentPixel_16
tRNSChunkback to summary
private static final int tRNSChunk
underlyingInputStreamback to summary
pack-priv InputStream underlyingInputStream
widthback to summary
private int width
zTXtChunkback to summary
private static final int zTXtChunk

Constructor Detail

PNGImageDecoderback to summary
public PNGImageDecoder(InputStreamImageSource src, InputStream input) throws IOException

Method Detail

crcback to summary
private static int crc(byte[] buf, int offset, int len)
fillback to summary
private void fill() throws IOException
filterRowback to summary
private void filterRow(byte[] rowByteBuffer, byte[] prevRow, int rowFilter, int rowByteWidth, int bytesPerSample) throws IOException
getByteback to summary
private int getByte(int pos)
getCheckCRCback to summary
public static boolean getCheckCRC()
getChunkback to summary
private boolean getChunk() throws IOException
getDataback to summary
pack-priv boolean getData() throws IOException
getIntback to summary
private int getInt(int pos)
getShortback to summary
private int getShort(int pos)
handleChunkback to summary
protected boolean handleChunk(int key, byte[] buf, int st, int len) throws IOException
needback to summary
private boolean need(int n) throws IOException
pngassertback to summary
private void pngassert(boolean b) throws IOException
produceImageback to summary
public void produceImage() throws IOException, ImageFormatException

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

propertyback to summary
private void property(String key, Object value)
propertyback to summary
private void property(String key, float value)
readAllback to summary
private void readAll() throws IOException
sendPixelsback to summary
private boolean sendPixels(int x, int y, int w, int h, int[] pixels, int offset, int pixlength)
sendPixelsback to summary
private boolean sendPixels(int x, int y, int w, int h, byte[] pixels, int offset, int pixlength)
setCheckCRCback to summary
public static void setCheckCRC(boolean c)
update_crcback to summary
private static int update_crc(int crc, byte[] buf, int offset, int len)
wrcback to summary
protected void wrc(int c)
wrkback to summary
protected void wrk(int n)
sun.awt.image back to summary

public Class PNGImageDecoder.Chromaticities

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public float
public float
public float
public float
public float
public float
public float
public float

Constructor Summary

AccessConstructor and Description
pack-priv
Chromaticities(int wx, int wy, int rx, int ry, int gx, int gy, int bx, int by)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

blueXback to summary
public float blueX
blueYback to summary
public float blueY
greenXback to summary
public float greenX
greenYback to summary
public float greenY
redXback to summary
public float redX
redYback to summary
public float redY
whiteXback to summary
public float whiteX
whiteYback to summary
public float whiteY

Constructor Detail

Chromaticitiesback to summary
pack-priv Chromaticities(int wx, int wy, int rx, int ry, int gx, int gy, int bx, int by)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

sun.awt.image back to summary

public Class PNGImageDecoder.PNGException

extends IOException
Class Inheritance
Annotations
@SuppressWarnings:serial

Constructor Summary

AccessConstructor and Description
pack-priv

Constructor Detail

PNGExceptionback to summary
pack-priv PNGException(String s)