? CloseShieldReader

????????:
Closeable, AutoCloseable, Readable

public class CloseShieldReader extends ProxyReader
Proxy reader that prevents the underlying reader from being closed.

This class is typically used in cases where a reader needs to be passed to a component that wants to explicitly close the reader even if more input would still be available to other components.

???????:
2.7
  • ???????

    • CloseShieldReader

      ????
      Using this constructor prevents IDEs from warning if the underlying reader is never closed. Use wrap(Reader) instead.
      Creates a proxy that shields the given reader from being closed.
      ??:
      reader - underlying reader
  • ??????