Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) throws Exception {
- try (InputStream fis = new FileInputStream("myfile.zip");
- GZIPInputStream zipis = new GZIPInputStream(fis)) {
- int data = zipis.read();
- while (data != -1) {
- //do something with data
- data = zipis.read();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement