Skip to content

Instantly share code, notes, and snippets.

@bbakerman
Last active October 10, 2018 04:36
Show Gist options
  • Save bbakerman/a4629cd6e5be14d1787afe9dfa4c5451 to your computer and use it in GitHub Desktop.
Save bbakerman/a4629cd6e5be14d1787afe9dfa4c5451 to your computer and use it in GitHub Desktop.
// And example bit of code
// marked by
// ::FigureA
for (java.util.Enumeration entries = zf.entries(); entries.hasMoreElements();) {
// Get the entry name and write it to the output file
String newLine = System.getProperty("line.separator");
String zipEntryName =
((java.util.zip.ZipEntry)entries.nextElement()).getName() +
newLine;
writer.write(zipEntryName, 0, zipEntryName.length());
// more text
}
// ::/FigureA
This shuld not be seen
here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment