|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectImageInputStreamImpl
FilterImageInputStream
InflaterImageInputStream
GZIPImageInputStream
public class GZIPImageInputStream
This class implements a stream filter for reading compressed data in the GZIP format.
| Field Summary | |
|---|---|
protected CRC32 |
crc
CRC-32 for uncompressed data. |
protected boolean |
eos
Indicates end of input stream. |
static int |
GZIP_MAGIC
GZIP header magic number. |
| Fields inherited from class InflaterImageInputStream |
|---|
buf, inf, len, singleByteBuf, usesDefaultInflater |
| Fields inherited from class FilterImageInputStream |
|---|
iis |
| Fields inherited from class ImageInputStreamImpl |
|---|
bitOffset, byteOrder, flushedPos, streamPos |
| Constructor Summary | |
|---|---|
GZIPImageInputStream(ImageInputStream iis)
Creates a new input stream with the specified buffer size. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated with the stream. |
int |
read(byte[] buf,
int off,
int len)
Reads uncompressed data into an array of bytes. |
| Methods inherited from class InflaterImageInputStream |
|---|
fill, mark, read, reset, seek, skipBytes, skipBytes |
| Methods inherited from class FilterImageInputStream |
|---|
getByteOrder, isCached, isCachedFile, isCachedMemory, setBitOffset, setByteOrder |
| Methods inherited from class ImageInputStreamImpl |
|---|
checkClosed, finalize, flush, flushBefore, getBitOffset, getFlushedPosition, getStreamPosition, length, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF |
| Methods inherited from class Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ImageInputStream |
|---|
flush, flushBefore, getBitOffset, getFlushedPosition, getStreamPosition, length, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF |
| Field Detail |
|---|
public static final int GZIP_MAGIC
protected CRC32 crc
protected boolean eos
| Constructor Detail |
|---|
public GZIPImageInputStream(ImageInputStream iis)
throws IOException
in - the input streamsize - the input buffer size
IOException - if an I/O error has occurred
IllegalArgumentException - if size is <= 0| Method Detail |
|---|
public int read(byte[] buf,
int off,
int len)
throws IOException
read in interface ImageInputStreamread in class InflaterImageInputStreambuf - the buffer into which the data is readoff - the start offset of the datalen - the maximum number of bytes read
IOException - if an I/O error has occurred or the compressed input
data is corrupt
public void close()
throws IOException
close in interface ImageInputStreamclose in class InflaterImageInputStreamIOException - if an I/O error has occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||