Class ServletInputStreamWrapper

java.lang.Object
java.io.InputStream
jakarta.servlet.ServletInputStream
org.apache.solr.servlet.ServletInputStreamWrapper
All Implemented Interfaces:
Closeable, AutoCloseable

public class ServletInputStreamWrapper extends jakarta.servlet.ServletInputStream
Provides a convenient extension of the ServletInputStream class that can be subclassed by developers wishing to adapt the behavior of a Stream. One such example may be to override close() to instead be a no-op as in SOLR-8933.

This class implements the Wrapper or Decorator pattern. Methods default to calling through to the wrapped stream.