Class Deflater
java.lang.Object
com.codename1.io.gzip.ZStream
com.codename1.io.gzip.Deflater
-
Field Summary
Fields inherited from class ZStream
availIn, availOut, msg, nextIn, nextInIndex, nextOut, nextOutIndex, totalIn, totalOutModifier and TypeFieldDescriptionintDeprecated.intDeprecated.Deprecated.byte[]Deprecated.intDeprecated.byte[]Deprecated.intDeprecated.longDeprecated.longDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeflater()Deflater(int level) Deflater(int level, boolean nowrap) Deflater(int level, int bits) Deflater(int level, int bits, boolean nowrap) Deflater(int level, int bits, int memlevel) Deflater(int level, int bits, int memlevel, com.codename1.io.gzip.JZlib.WrapperType wrapperType) -
Method Summary
Modifier and TypeMethodDescriptionintintdeflate(int flush) intend()Those methods are expected to be override by Inflater and Deflater.booleanfinished()intinit(int level) intinit(int level, boolean nowrap) intinit(int level, int bits) intinit(int level, int bits, boolean nowrap) intinit(int level, int bits, int memlevel) intinit(int level, int bits, int memlevel, com.codename1.io.gzip.JZlib.WrapperType wrapperType) intparams(int level, int strategy) intsetDictionary(byte[] dictionary, int dictLength) Methods inherited from class ZStream
deflateEnd, deflateInit, deflateInit, deflateInit, deflateInit, deflateInit, deflateInit, deflateParams, deflateSetDictionary, free, getAdler, getAvailIn, getAvailOut, getMessage, getNextIn, getNextInIndex, getNextOut, getNextOutIndex, getTotalIn, getTotalOut, inflate, inflateEnd, inflateFinished, inflateInit, inflateInit, inflateInit, inflateInit, inflateInit, inflateInit, inflateSetDictionary, inflateSync, inflateSyncPoint, setAvailIn, setAvailOut, setInput, setInput, setInput, setNextIn, setNextInIndex, setNextOut, setNextOutIndex, setOutput, setOutputModifier and TypeMethodDescriptionintDeprecated.intdeflateInit(int level) Deprecated.intdeflateInit(int level, boolean nowrap) Deprecated.intdeflateInit(int level, int bits) Deprecated.intdeflateInit(int level, int bits, boolean nowrap) Deprecated.intdeflateInit(int level, int bits, int memlevel) Deprecated.intdeflateInit(int level, int bits, int memlevel, com.codename1.io.gzip.JZlib.WrapperType wrapperType) Deprecated.intdeflateParams(int level, int strategy) Deprecated.intdeflateSetDictionary(byte[] dictionary, int dictLength) Deprecated.voidfree()Deprecated.longgetAdler()Deprecated.intDeprecated.intDeprecated.Deprecated.byte[]Deprecated.intDeprecated.byte[]Deprecated.intDeprecated.longDeprecated.longDeprecated.intinflate(int f) Deprecated.intDeprecated.booleanDeprecated.intDeprecated.intinflateInit(boolean nowrap) Deprecated.intinflateInit(int w) Deprecated.intinflateInit(int w, boolean nowrap) Deprecated.intinflateInit(int w, com.codename1.io.gzip.JZlib.WrapperType wrapperType) Deprecated.intinflateInit(com.codename1.io.gzip.JZlib.WrapperType wrapperType) Deprecated.intinflateSetDictionary(byte[] dictionary, int dictLength) Deprecated.intDeprecated.intDeprecated.voidsetAvailIn(int availIn) Deprecated.voidsetAvailOut(int availOut) Deprecated.voidsetInput(byte[] buf) Deprecated.voidsetInput(byte[] buf, boolean append) Deprecated.voidsetInput(byte[] buf, int off, int len, boolean append) Deprecated.voidsetNextIn(byte[] nextIn) Deprecated.voidsetNextInIndex(int nextInIndex) Deprecated.voidsetNextOut(byte[] nextOut) Deprecated.voidsetNextOutIndex(int nextOutIndex) Deprecated.voidsetOutput(byte[] buf) Deprecated.voidsetOutput(byte[] buf, int off, int len) Deprecated.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
-
Deflater
public Deflater() -
Deflater
- Throws:
GZIPException
-
Deflater
- Throws:
GZIPException
-
Deflater
- Throws:
GZIPException
-
Deflater
- Throws:
GZIPException
-
Deflater
public Deflater(int level, int bits, int memlevel, com.codename1.io.gzip.JZlib.WrapperType wrapperType) throws GZIPException - Throws:
GZIPException
-
Deflater
- Throws:
GZIPException
-
-
Method Details
-
init
public int init(int level) -
init
public int init(int level, boolean nowrap) -
init
public int init(int level, int bits) -
init
public int init(int level, int bits, int memlevel, com.codename1.io.gzip.JZlib.WrapperType wrapperType) -
init
public int init(int level, int bits, int memlevel) -
init
public int init(int level, int bits, boolean nowrap) -
deflate
-
end
-
params
public int params(int level, int strategy) -
setDictionary
public int setDictionary(byte[] dictionary, int dictLength) -
finished
-
copy
-