public class InflaterImageInputStream extends FilterImageInputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf
Input buffer for decompression.
|
protected boolean |
closed |
protected Inflater |
inf
Decompressor for this stream.
|
protected int |
len
Length of input buffer.
|
protected byte[] |
singleByteBuf |
protected boolean |
usesDefaultInflater |
iisbitOffset, byteOrder, flushedPos, streamPos| Constructor and Description |
|---|
InflaterImageInputStream(ImageInputStream iis) |
InflaterImageInputStream(ImageInputStream iis,
Inflater inflater) |
InflaterImageInputStream(ImageInputStream iis,
Inflater inflater,
int size) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
protected void |
fill()
Fills input buffer with more data to decompress.
|
void |
mark() |
int |
read()
Reads a byte of uncompressed data.
|
int |
read(byte[] b,
int off,
int len)
Reads uncompressed data into an array of bytes.
|
void |
reset() |
void |
seek(long pos) |
int |
skipBytes(int n) |
long |
skipBytes(long n)
Skips specified number of bytes of uncompressed data.
|
getByteOrder, 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, readUTFprotected int len
protected boolean closed
protected byte[] buf
protected byte[] singleByteBuf
protected boolean usesDefaultInflater
protected Inflater inf
public InflaterImageInputStream(ImageInputStream iis)
public InflaterImageInputStream(ImageInputStream iis, Inflater inflater)
public InflaterImageInputStream(ImageInputStream iis, Inflater inflater, int size)
public int read()
throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplIOException - if an I/O error has occurredpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface ImageInputStreamread in class ImageInputStreamImplb - the buffer into which the data is readoff - the start offset of the datalen - the maximum number of bytes readZipException - if a ZIP format error has occurredIOException - if an I/O error has occurredprotected void fill()
throws IOException
IOException - if an I/O error has occurredpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ImageInputStreamclose in class ImageInputStreamImplIOException - if an I/O error has occurredpublic void mark()
mark in interface ImageInputStreammark in class ImageInputStreamImplpublic void reset()
throws IOException
reset in interface ImageInputStreamreset in class ImageInputStreamImplIOExceptionpublic void seek(long pos)
throws IOException
seek in interface ImageInputStreamseek in class ImageInputStreamImplIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputskipBytes in interface ImageInputStreamskipBytes in class FilterImageInputStreamIOExceptionpublic long skipBytes(long n)
throws IOException
skipBytes in interface ImageInputStreamskipBytes in class ImageInputStreamImpln - the number of bytes to skipIOException - if an I/O error has occurredIllegalArgumentException - if n < 0Copyright © 2006–2019 GeoSolutions. All rights reserved.