public class GZIPImageInputStream extends InflaterImageInputStream
Modifier and Type | Field and Description |
---|---|
protected CRC32 |
crc
CRC-32 for uncompressed data.
|
protected boolean |
eos
Indicates end of input stream.
|
static int |
GZIP_MAGIC
GZIP header magic number.
|
buf, inf, len, singleByteBuf, usesDefaultInflater
iis
bitOffset, byteOrder, flushedPos, streamPos
Constructor and Description |
---|
GZIPImageInputStream(ImageInputStream iis)
Creates a new input stream with the specified buffer size.
|
Modifier and Type | Method and Description |
---|---|
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.
|
fill, mark, read, reset, seek, skipBytes, skipBytes
getByteOrder, isCached, isCachedFile, isCachedMemory, setBitOffset, setByteOrder
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
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
public static final int GZIP_MAGIC
protected CRC32 crc
protected boolean eos
public GZIPImageInputStream(ImageInputStream iis) throws IOException
in
- the input streamsize
- the input buffer sizeIOException
- if an I/O error has occurredIllegalArgumentException
- if size is <= 0public int read(byte[] buf, int off, int len) throws IOException
read
in interface ImageInputStream
read
in class InflaterImageInputStream
buf
- the buffer into which the data is readoff
- the start offset of the datalen
- the maximum number of bytes readIOException
- if an I/O error has occurred or the compressed input
data is corruptpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface ImageInputStream
close
in class InflaterImageInputStream
IOException
- if an I/O error has occurredCopyright © 2006–2019 GeoSolutions. All rights reserved.