Class IdentityInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class IdentityInputStream
    extends InputStream
    Input stream that reads data without any transformation. The end of the content entity is demarcated by closing the underlying connection (EOF condition). Entities transferred using this input stream can be of unlimited length.

    Note that this class NEVER closes the underlying stream, even when close gets called. Instead, it will read until the end of the stream (until -1 is returned).

    Since:
    4.0