Public Static (Shared) Fields
BEST_COMPRESSION |
The best and slowest compression level. This tries to find very
long and distant string repetitions.
|
BEST_SPEED |
The worst but fastest compression level.
|
DEFAULT_COMPRESSION |
The default compression level.
|
DEFLATED |
The compression method. This is the only method supported so far.
There is no need to use this constant at all.
|
NO_COMPRESSION |
This level won't compress at all but output uncompressed blocks.
|
Public Instance Constructors
Deflater | Overloaded. Initialize a new instance of the Deflater class. |
Public Instance Properties
Adler |
Gets the current adler checksum of the data that was processed so far.
|
IsFinished |
Returns true if the stream was finished and no more output bytes
are available.
|
IsNeedingInput |
Returns true, if the input buffer is empty.
You should then call setInput().
NOTE: This method can also return true when the stream
was finished.
|
TotalIn |
Gets the number of input bytes processed so far.
|
TotalOut |
Gets the number of output bytes so far.
|
Public Instance Methods
Deflate | Overloaded.
Deflates the current input block to the given array. It returns
the number of bytes compressed, or 0 if either
needsInput() or finished() returns true or length is zero.
|
Equals (inherited from Object) | Select the method name to go to the Microsoft documentation. |
Finish |
Finishes the deflater with the current input block. It is an error
to give more input after this method was called. This method must
be called to force all bytes to be flushed.
|
Flush |
Flushes the current input block. Further calls to deflate() will
produce enough output to inflate everything in the current input
block. This is not part of Sun's JDK so I have made it package
private. It is used by DeflaterOutputStream to implement
flush().
|
GetHashCode (inherited from Object) | Select the method name to go to the Microsoft documentation. |
GetType (inherited from Object) | Select the method name to go to the Microsoft documentation. |
Reset |
Resets the deflater. The deflater acts afterwards as if it was
just created with the same compression level and strategy as it
had before.
|
SetDictionary | Overloaded.
Sets the dictionary which should be used in the deflate process.
This call is equivalent to setDictionary(dict, 0, dict.Length) .
|
SetInput | Overloaded.
Sets the data which should be compressed next. This should be only
called when needsInput indicates that more input is needed.
If you call setInput when needsInput() returns false, the
previous input that is still pending will be thrown away.
The given byte array should not be changed, before needsInput() returns
true again.
This call is equivalent to setInput(input, 0, input.length) .
|
SetLevel |
Sets the compression level. There is no guarantee of the exact
position of the change, but if you call this when needsInput is
true the change of compression level will occur somewhere near
before the end of the so far given input.
|
SetStrategy |
Sets the compression strategy. Strategy is one of
DEFAULT_STRATEGY, HUFFMAN_ONLY and FILTERED. For the exact
position where the strategy is changed, the same as for
setLevel() applies.
|
ToString (inherited from Object) | Select the method name to go to the Microsoft documentation. |
Protected Instance Methods
Finalize (inherited from Object) | Select the method name to go to the Microsoft documentation. |
MemberwiseClone (inherited from Object) | Select the method name to go to the Microsoft documentation. |
See Also
Deflater Class | ICSharpCode.SharpZipLib.Zip.Compression Namespace