Class GZIPInputStream
java.lang.Object
java.io.InputStream
com.codename1.io.gzip.FilterInputStream
com.codename1.io.gzip.InflaterInputStream
com.codename1.io.gzip.GZIPInputStream
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class InflaterInputStream
buf, DEFAULT_BUFSIZE, inflater, myinflaterModifier and TypeFieldDescriptionprotected byte[]protected static final intprotected final Inflaterprotected booleanFields inherited from class FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionGZIPInputStream(InputStream in, int size, boolean closeIn) GZIPInputStream(InputStream in, Inflater inflater, int size, boolean closeIn) -
Method Summary
Methods inherited from class InflaterInputStream
available, close, fill, getAvailIn, getInflater, getTotalIn, getTotalOut, mark, markSupported, read, read, reset, skipModifier and TypeMethodDescriptionintReturns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.voidclose()Closes this input stream and releases any system resources associated with the stream.protected voidfill()byte[]longlongvoidmark(int readlimit) Marks the current position in this input stream.booleanTests if this input stream supports the mark and reset methods.intread()Reads the next byte of data from the input stream.intread(byte[] b, int off, int len) Reads up to len bytes of data from the input stream into an array of bytes.voidreset()Repositions this stream to the position at the time the mark method was last called on this input stream.longskip(long n) Skips over and discards n bytes of data from this input stream.Methods inherited from class FilterInputStream
readModifier and TypeMethodDescriptionintread(byte[] b) Reads some number of bytes from the input stream and stores them into the buffer array b.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
GZIPInputStream
- Throws:
IOException
-
GZIPInputStream
- Throws:
IOException
-
GZIPInputStream
public GZIPInputStream(InputStream in, Inflater inflater, int size, boolean closeIn) throws IOException - Throws:
IOException
-
-
Method Details
-
getModifiedtime
public long getModifiedtime() -
getOS
public int getOS() -
getName
-
getComment
-
getCRC
- Throws:
GZIPException
-
readHeader
- Overrides:
readHeaderin classInflaterInputStream- Throws:
IOException
-