- <init>
Creates a new ThroughputLimitInputStream with an initial throughput limit.
- addToLimitCounter
Increases the number of bytes read this second to the given number.
- close
- getNbAllowedBytes
Returns the number of bytes that can be read (or skipped) without exceeding the
current throughput l
- read
- setThroughputLimit
Specifies a new throughput limit expressed in bytes per second. The new limit
will take effect the n
- updateLimitCounter
Checks if the current second has changed. If that's the case, updates the
current second value and r