> Could you tell me what the problem with the docs was?
Well...
Maybe I made some mistakes when I tried to convert the code from c to java and the example from Valery didn't work.
To know how many data there still was to decode it compared the output size specified in the file header to the current output size (actually it took the header-outputsize and when decompressing and writing out bytes counted backwards until the size arrived to 0).
The rest of the code seems nearly identical.
Anyway it never seemed to come to 0.
It allways missed some bytes. I don't exactly know why. It may have been that I have made some mistaked although I checked and compared the code many times. It may also be that due to my lack of knowledge of c I made some errors when trying to convert the code to java.
As I said I don't know what exactly went wrong.
Anyway I have seen another application somewhere (I forgot where) using the same code as in the example so I suppose it works.
Sorry for not being able to say what didn't work and thanks again.