Skip to content

Instantly share code, notes, and snippets.

@laughingclouds
Created September 18, 2022 13:23
Show Gist options
  • Save laughingclouds/95c5577984caf03303f7d2725f9051fb to your computer and use it in GitHub Desktop.
Save laughingclouds/95c5577984caf03303f7d2725f9051fb to your computer and use it in GitHub Desktop.
import java.io.IOException;
import java.util.Iterator;
import java.util.zip.*;
/**
* Main
*/
public class Main {
public static void main(String[] args) throws IOException {
ZipFile zf = new ZipFile("readDis.epub");
Iterator<? extends ZipEntry> zfI = zf.entries().asIterator();
while (zfI.hasNext()) {
System.out.println(zfI.next().toString());
// ZipEntry zfE = zfI.next();
}
zf.getEntry("container.xml");
zf.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment