Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.swt.internal.image
Class PngDecodingDataStream  view PngDecodingDataStream download PngDecodingDataStream.java

java.lang.Object
  extended byorg.eclipse.swt.internal.image.PngDecodingDataStream

public class PngDecodingDataStream
extends java.lang.Object


Field Summary
(package private)  int adlerValue
           
(package private)  PngChunkReader chunkReader
           
(package private)  byte currentByte
           
(package private)  PngIdatChunk currentChunk
           
(package private)  PngLzBlockReader lzBlockReader
           
(package private) static int MAX_BIT
           
(package private)  int nextBitIndex
           
(package private)  int nextByteIndex
           
(package private) static int PRIME
           
 
Constructor Summary
(package private) PngDecodingDataStream(PngIdatChunk idatChunk, PngChunkReader chunkReader)
           
 
Method Summary
(package private)  void assertImageDataAtEnd()
          This method should be called when the image decoder thinks that all of the compressed image data has been read.
(package private)  void checkAdler()
           
(package private)  void error()
           
private  PngIdatChunk getNextChunk()
           
(package private)  byte getNextDecodedByte()
           
(package private)  byte getNextIdatBit()
           
(package private)  int getNextIdatBits(int length)
           
(package private)  byte getNextIdatByte()
           
private  void readCompressedDataHeader()
           
private  void updateAdler(byte value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentChunk

PngIdatChunk currentChunk

chunkReader

PngChunkReader chunkReader

currentByte

byte currentByte

nextByteIndex

int nextByteIndex

nextBitIndex

int nextBitIndex

lzBlockReader

PngLzBlockReader lzBlockReader

adlerValue

int adlerValue

PRIME

static final int PRIME
See Also:
Constant Field Values

MAX_BIT

static final int MAX_BIT
See Also:
Constant Field Values
Constructor Detail

PngDecodingDataStream

PngDecodingDataStream(PngIdatChunk idatChunk,
                      PngChunkReader chunkReader)
Method Detail

assertImageDataAtEnd

void assertImageDataAtEnd()
This method should be called when the image decoder thinks that all of the compressed image data has been read. This method will ensure that the next data value is an end of block marker. If there are more blocks after this one, the method will read them and ensure that they are empty.


getNextIdatBits

int getNextIdatBits(int length)

getNextIdatBit

byte getNextIdatBit()

getNextChunk

private PngIdatChunk getNextChunk()

getNextIdatByte

byte getNextIdatByte()

updateAdler

private void updateAdler(byte value)

getNextDecodedByte

byte getNextDecodedByte()

error

void error()

readCompressedDataHeader

private void readCompressedDataHeader()

checkAdler

void checkAdler()