There is an example at java2s.com.
Type: Posts; User: pbrockway2
There is an example at java2s.com.
getSize()/getCompressedSize() provide two metrics for the size of a zip entry. (jar files are a sort of zip file, and are made up of a number of entries which when unzipped become files)