Is there a way to discover the total uncompressed size of all files inside a tar.gz without iterating through all the TarArchiveEntries in a TarArchiveInputStream like below?
TarArchiveInputStream tin = new TarArchiveInputStream(new GZIPInputStream(new FileInputStream("/path/to/my.tar.gz")));
TarArchiveEntry ten;
long size = 0;
while( (ten = tin.getNextTarEntry()) != null) {
size += ten.getSize();
}