I am writing a piece of code:
OutputStream outputStream = new FileOutputStream(createdFile); GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outputS
In Java 7, there is a feature try-with-resources. You no need to explicitly close your streams, it will take care of that.