public static Optional<ByteSize> getEntryUncompressedSize(final ArchiveEntry archiveEntry) {
        return Optional.ofNullable(archiveEntry)
                .map(ArchiveEntry::getSize)
                .filter(size -> size != ArchiveEntry.SIZE_UNKNOWN)
                .map(ByteSize::ofBytes);
    }
Get the uncompressed size of the entry, if known.
stroom-util/src/main/java/stroom/util/zip/ZipUtil.java