Shared Cache is high performance distributed and replication cache system built for .Net applications running in server farms.

The Deflater type exposes the following members.

Constructors

  NameDescription
DeflaterOverloaded.

Methods

  NameDescription
DeflateOverloaded.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
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
Serves as a hash function for a particular type.
(Inherited from Object.)
GetLevel
Get current compression level
GetType
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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.
SetDictionaryOverloaded.
SetInputOverloaded.
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
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
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.

Properties

  NameDescription
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.

See Also