Multiple Deflater Objecters on a file

S

Shea Martin

As an academic exercise I am writing a multi-threaded program, in which
each thread uses a Deflater on the same file.

I am pretty sure that I can't just start reading at different offsets
with each deflater. I assume I need a method of sharing the state of
then first deflater. Is there a way I can get the dictionary from a
deflater? I know I can set it...

Thanks,

~S
 
S

Shea Martin

Shea said:
As an academic exercise I am writing a multi-threaded program, in which
each thread uses a Deflater on the same file.

I am pretty sure that I can't just start reading at different offsets
with each deflater. I assume I need a method of sharing the state of
then first deflater. Is there a way I can get the dictionary from a
deflater? I know I can set it...

Thanks,

~S

Even some notes on how to come up with my own dictionary would work
well. I understand the theory behind a dicitonary, just not the format
used in the byte buffer passed to setDicitonary().

~S
 
S

Shea Martin

Shea said:
Even some notes on how to come up with my own dictionary would work
well. I understand the theory behind a dicitonary, just not the format
used in the byte buffer passed to setDicitonary().

~S
I found that the dictionary is no special format, just raw data, that
compression algorithm indexes occurrences of.

~SSSS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top