I am writing a piece of code:
OutputStream outputStream = new FileOutputStream(createdFile); GZIPOutputStream gzipOutputStream = new GZIPOutputStream(outputS
No, the topmost level Stream or reader will ensure that all underlying streams / readers are closed.
Stream
reader
Check the close() method implementation of your topmost level stream.
close()