public class

InputLimit

extends Object
java.lang.Object
   ↳ org.apache.http.client.cache.InputLimit

Class Overview

Used to limiting the size of an incoming response body of unknown size that is optimistically being read in anticipation of caching it.

Summary

Public Constructors
InputLimit(long value)
Create a limit for how many bytes of a response body to read.
Public Methods
long getValue()
Returns the current maximum limit that was set on creation.
boolean isReached()
Returns true if the input limit has been reached.
void reached()
Used to report that the limit has been reached.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public InputLimit (long value)

Create a limit for how many bytes of a response body to read.

Parameters
value maximum length in bytes

Public Methods

public long getValue ()

Returns the current maximum limit that was set on creation.

public boolean isReached ()

Returns true if the input limit has been reached.

public void reached ()

Used to report that the limit has been reached.