Package com.helger.commons.io.stream
Class NonClosingReader
- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- com.helger.commons.io.stream.WrappedReader
-
- com.helger.commons.io.stream.NonClosingReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class NonClosingReader extends WrappedReader
A specialReaderthat does not close the stream. This is e.g. helpful for reading from streams within a ZIP file.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description NonClosingReader(Reader aSourceReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()-
Methods inherited from class com.helger.commons.io.stream.WrappedReader
getWrappedReader, toString
-
Methods inherited from class java.io.FilterReader
mark, markSupported, read, read, ready, reset, skip
-
Methods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterReader
-
-