- java.lang.Object
-
- java.io.Reader
-
- java.io.FilterReader
-
- com.aoapps.lang.io.NoCloseReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public class NoCloseReader extends FilterReader
Overridesclose()to a no-op.
-
-
Field Summary
-
Fields inherited from class java.io.FilterReader
in
-
-
Constructor Summary
Constructors Constructor Description NoCloseReader(Reader in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Does not close the wrapped reader.-
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
-
-
-
-
Constructor Detail
-
NoCloseReader
public NoCloseReader(Reader in)
-
-
Method Detail
-
close
public void close() throws IOExceptionDoes not close the wrapped reader.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterReader- Throws:
IOException
-
-