Skip to content

Instantly share code, notes, and snippets.

@diorahman
Created April 27, 2012 02:45
Show Gist options
  • Save diorahman/2505270 to your computer and use it in GitHub Desktop.
Save diorahman/2505270 to your computer and use it in GitHub Desktop.
try
{
this.con = new URL(getCodeBase(), str).openConnection();
this.con.setDoInput(true);
this.con.setDoOutput(false);
this.con.setUseCaches(false);
this.con.connect();
ZipInputStream localZipInputStream = new ZipInputStream(this.con.getInputStream());
while (...)
{
localZipInputStream.getNextEntry();
localZipInputStream.read()
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment