|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectImageInputStreamImpl
FilterImageInputStream
InflaterImageInputStream
public class InflaterImageInputStream
Field Summary | |
---|---|
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
|
Fields inherited from class FilterImageInputStream |
---|
iis |
Fields inherited from class ImageInputStreamImpl |
---|
bitOffset, byteOrder, flushedPos, streamPos |
Constructor Summary | |
---|---|
InflaterImageInputStream(ImageInputStream iis)
|
|
InflaterImageInputStream(ImageInputStream iis,
Inflater inflater)
|
|
InflaterImageInputStream(ImageInputStream iis,
Inflater inflater,
int size)
|
Method Summary | |
---|---|
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. |
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 |
---|
protected int len
protected boolean closed
protected byte[] buf
protected byte[] singleByteBuf
protected boolean usesDefaultInflater
protected Inflater inf
Constructor Detail |
---|
public InflaterImageInputStream(ImageInputStream iis)
public InflaterImageInputStream(ImageInputStream iis, Inflater inflater)
public InflaterImageInputStream(ImageInputStream iis, Inflater inflater, int size)
Method Detail |
---|
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 read
ZipException
- if a ZIP format error has occurred
IOException
- 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 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 skip
IOException
- if an I/O error has occurred
IllegalArgumentException
- if n < 0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |