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 |
iis
bitOffset, 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, 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
protected 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 ImageInputStream
read
in class ImageInputStreamImpl
IOException
- if an I/O error has occurredpublic int read(byte[] b, int off, int len) throws IOException
read
in interface ImageInputStream
read
in class ImageInputStreamImpl
b
- 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 Closeable
close
in interface AutoCloseable
close
in interface ImageInputStream
close
in class ImageInputStreamImpl
IOException
- if an I/O error has occurredpublic void mark()
mark
in interface ImageInputStream
mark
in class ImageInputStreamImpl
public void reset() throws IOException
reset
in interface ImageInputStream
reset
in class ImageInputStreamImpl
IOException
public void seek(long pos) throws IOException
seek
in interface ImageInputStream
seek
in class ImageInputStreamImpl
IOException
public int skipBytes(int n) throws IOException
skipBytes
in interface DataInput
skipBytes
in interface ImageInputStream
skipBytes
in class FilterImageInputStream
IOException
public long skipBytes(long n) throws IOException
skipBytes
in interface ImageInputStream
skipBytes
in class ImageInputStreamImpl
n
- the number of bytes to skipIOException
- if an I/O error has occurredIllegalArgumentException
- if n < 0Copyright © 2006–2019 GeoSolutions. All rights reserved.