Class NoCloseReader

java.lang.Object
java.io.Reader
com.Ostermiller.util.NoCloseReader
All Implemented Interfaces:
NoCloseStream, Closeable, AutoCloseable, Readable

public class NoCloseReader extends Reader implements NoCloseStream
A reader which a close method with no effect. More information about this class is available from ostermiller.org.

This class implements the Decorator design pattern to wrap a normal reader so that it can be passed to methods that read from it and may erroneously close it. This class is a workaround when the method cannot be modified because it is in a library.

Since:
ostermillerutils 1.01.00
Author:
Stephen Ostermiller https://ostermiller.org/contact.pl?regarding=Java+Utilities