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, usesDefaultInflateriisbitOffset, 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, skipBytesgetByteOrder, isCached, isCachedFile, isCachedMemory, setBitOffset, setByteOrdercheckClosed, 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, readUTFclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflush, 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, readUTFpublic 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 ImageInputStreamread in class InflaterImageInputStreambuf - 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 Closeableclose in interface AutoCloseableclose in interface ImageInputStreamclose in class InflaterImageInputStreamIOException - if an I/O error has occurredCopyright © 2006–2019 GeoSolutions. All rights reserved.