This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

reading delimited gzipped serialized objects  RSS feed

Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Hoping someone might help me get my head around the reading of a data file.

the strucutre of file begins with a 100 byte header. after that there is a 0L delimter (8 bytes of 0) followed by a set of gzipped/serialised objects followed by the delimiter, then again followed by more gzipped/serialised objects and a delimiter at the end...

I've got the header reading in ok using fileinputstream but its the skipping over delimiter reading up to the next delimiter whilst unzipping/deserialising which is confusing me...

Any help appreciated, thankyou
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!