Class PngDecodingDataStream
java.lang.Object
java.io.InputStream
org.eclipse.swt.internal.image.PngDecodingDataStream
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) byte(package private) PngLzBlockReader(package private) static final int(package private) int(package private) static final int(package private) InputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidThis method should be called when the image decoder thinks that all of the compressed image data has been read.(package private) voidvoidclose()(package private) voiderror()(package private) int(package private) intgetNextIdatBits(int length) (package private) byteintread()intread(byte[] buffer, int off, int len) private void(package private) voidupdateAdler(byte value) Methods inherited from class InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
stream
InputStream stream -
currentByte
byte currentByte -
nextBitIndex
int nextBitIndex -
lzBlockReader
PngLzBlockReader lzBlockReader -
adlerValue
int adlerValue -
PRIME
static final int PRIME- See Also:
-
MAX_BIT
static final int MAX_BIT- See Also:
-
-
Constructor Details
-
PngDecodingDataStream
PngDecodingDataStream(InputStream stream) throws IOException - Throws:
IOException
-
-
Method Details
-
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.- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
getNextIdatBits
- Throws:
IOException
-
getNextIdatBit
- Throws:
IOException
-
getNextIdatByte
- Throws:
IOException
-
updateAdler
void updateAdler(byte value) -
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
error
void error() -
readCompressedDataHeader
- Throws:
IOException
-
checkAdler
- Throws:
IOException
-