Z
ZelluX
Hello, I want to write a simple Zip compression and decompression tool
in Java.
Now I'm confronted with a problem,
i store compression infomation in a serializable HuffmanTree, and use
ObjectOutputStream to write the whole tree in a binary file, after
that, i append compressed bytes to the end of the file.
When decompressing, how can i first get the HuffmanTree out of the
file and then read compressed bytes from the file?
Or any better solution to this problem?
Many thanks.
in Java.
Now I'm confronted with a problem,
i store compression infomation in a serializable HuffmanTree, and use
ObjectOutputStream to write the whole tree in a binary file, after
that, i append compressed bytes to the end of the file.
When decompressing, how can i first get the HuffmanTree out of the
file and then read compressed bytes from the file?
Or any better solution to this problem?
Many thanks.