I am writing a piece of code:
OutputStream outputStream = new FileOutputStream(createdFile); GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outputS
It will be fine if you only close the last stream - the close call will be send to the underlying streams, too.