Class CloseShieldInputStream

All Implemented Interfaces:
Closeable, AutoCloseable

@Deprecated(since="2026-04-30") public class CloseShieldInputStream extends ProxyInputStream
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Proxy stream that prevents the underlying input stream from being closed.

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

Since:
Apache Tika 0.4, copied from Commons IO 1.4
  • Constructor Details

    • CloseShieldInputStream

      public CloseShieldInputStream(InputStream in)
      Deprecated.
      Creates a proxy that shields the given input stream from being closed.
      Parameters:
      in - underlying input stream
  • Method Details