Advertisement
Guest User

Untitled

a guest
Oct 9th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public static void main(String[] args) throws Exception {
  2. try (InputStream fis = new FileInputStream("myfile.zip");
  3. GZIPInputStream zipis = new GZIPInputStream(fis)) {
  4. int data = zipis.read();
  5. while (data != -1) {
  6. //do something with data
  7. data = zipis.read();
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement