Jump to content

Zlib decompression

- - - - -

  • Please log in to reply
No replies to this topic

#1
sakishrist

sakishrist

    Programmer

  • Members
  • PipPipPipPip
  • 109 posts
Greetings!

I have a little problem decompressing some data with zlib. The thing is that I am new to Java and the problem is not so much about the zlib itself but the more basics of the language.

So, I have a file that is partially compressed. Actually it is something like this:
[COLOR=lime][INFO ABOUT DATA][/COLOR][COLOR=red][COMPRESSED DATA][/COLOR][COLOR=lime][INFO ABOUT DATA][/COLOR][COLOR=red][COMPRESSED DATA][/COLOR][COLOR=lime][INFO ABOUT DATA][/COLOR][COLOR=red][COMPRESSED DATA] [COLOR=black]...[/COLOR][/COLOR]


Now then, I need to decompress those parts. I tried to do so with
GZIPInputStream but it requires me to pass a file stream. So I am wondering how I should pass only those parts as a stream or if there is another method to do that.

Thanks in advance!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users