1 # Provides compression and uncompression features for zipdoc program. Can be transparently
2 # exchanged with other compression methods, as long as the same is used for packing and
3 # accessing (unpacking). Must operate so that each chunk can be independently unpacked.
8 def self.uncompress(txt)
9 Zlib::Inflate.new.inflate(txt)
12 def self.compress(txt)
13 Zlib::Deflate.new.deflate(txt, Zlib::FINISH)