public static void listZipEntries(String path) throws IOException {
        try (ZipFile zip = new ZipFile(path)) {
            for (ZipEntry entry : Collections.list(zip.entries())) {
                System.out.println(entry.getName());
            }
        }
    }
Example code listing from Chapter 1. Lists a zip file's entries using JDK's
standard APIs.
tika-example/src/main/java/org/apache/tika/example/ZipListFiles.java