This can help focus what you are looking for.
There is usually a two-byte ZLIB header in front of all your data . As far as I know, the lower 4 bits of the first byte should ALWAYS be 8 . If you initialize your Deflater in nowrap mode, then you will not receive these two bytes at all (although otherwise your other library should expect not to receive them).
3- (, , ). , , 5, , , 8, , .
DeflaterOutputStream, Deflater , Defalter , . - , , , ; offshance, , , .
(. setStrategy()) , , huffman. , , 2 ( , ). , , , , , .
Deflater, . , , , . , (.. ZLIB/Inflater ), ...!
, , , , , , , , / "". , J2ME , zlib, , ...