Class LimitedInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class LimitedInputStream
    extends InputStream
    A filtering InputStream for proper handling of the Content-Length header: It guarantees to return at most a given number of bytes.