Class InflaterInputStream
java.lang.Object
java.io.InputStream
com.codename1.io.gzip.FilterInputStream
com.codename1.io.gzip.InflaterInputStream
- All Implemented Interfaces:
java.io.Closeable, AutoCloseable
- Direct Known Subclasses:
GZIPInputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected static final intprotected final Inflaterprotected booleanFields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionInflaterInputStream(java.io.InputStream in) InflaterInputStream(java.io.InputStream in, boolean nowrap) InflaterInputStream(java.io.InputStream in, Inflater inflater) InflaterInputStream(java.io.InputStream in, Inflater inflater, int size) InflaterInputStream(java.io.InputStream in, Inflater inflater, int size, boolean closeIn) -
Method Summary
Methods inherited from class FilterInputStream
readMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEFAULT_BUFSIZE
protected static final int DEFAULT_BUFSIZE- See Also:
-
inflater
-
buf
protected byte[] buf -
myinflater
protected boolean myinflater
-
-
Constructor Details
-
InflaterInputStream
public InflaterInputStream(java.io.InputStream in) throws java.io.IOException - Throws:
java.io.IOException
-
InflaterInputStream
public InflaterInputStream(java.io.InputStream in, boolean nowrap) throws java.io.IOException - Throws:
java.io.IOException
-
InflaterInputStream
- Throws:
java.io.IOException
-
InflaterInputStream
public InflaterInputStream(java.io.InputStream in, Inflater inflater, int size) throws java.io.IOException - Throws:
java.io.IOException
-
InflaterInputStream
public InflaterInputStream(java.io.InputStream in, Inflater inflater, int size, boolean closeIn) throws java.io.IOException - Throws:
java.io.IOException
-
-
Method Details
-
read
public int read() throws java.io.IOException- Overrides:
readin classFilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException - Overrides:
readin classFilterInputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classFilterInputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException - Overrides:
skipin classFilterInputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classFilterInputStream- Throws:
java.io.IOException
-
fill
protected void fill() throws java.io.IOException- Throws:
java.io.IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classFilterInputStream
-
mark
public void mark(int readlimit) - Overrides:
markin classFilterInputStream
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classFilterInputStream- Throws:
java.io.IOException
-
getTotalIn
public long getTotalIn() -
getTotalOut
public long getTotalOut() -
getAvailIn
public byte[] getAvailIn() -
readHeader
public void readHeader() throws java.io.IOException- Throws:
java.io.IOException
-
getInflater
-