Does jar or zip compresses files on a per file basis (i.e., per entry)or across all files within the jar file?
(I can do some experiment but I just wonder what happened if you jar or zip up 2 identical 1GB file - Would the zip alogorithm compresses each file separately? Or, would it be smart enough to compress the two as a whole, and ends up with a ~< 1GB file. )
Thanks Jeanne. It sounds like I'd need to look for another solution of a "compressed drive" then. I am looking for something similar to what some versions of windows (e.g., xp) offer, where files are transparently compressed and uncompressed on the fly.
Has anybody seen something like that in a Java API? Does linux have it - so an entire mount point is transparently compressed/uncompressed..? If so, I could perhaps wrap that into Java?