SHARE
TWEET

Untitled

a guest Oct 9th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top