minicopier
Class ThroughputLimitInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by minicopier.ThroughputLimitInputStream
All Implemented Interfaces:
java.io.Closeable

public class ThroughputLimitInputStream
extends java.io.InputStream

ThroughputLimitInputStream extends InputStream to provide control over the transfer speed and limit it to a specified number of bytes per second. Whenever the bytes per second quota has been reached, the read and skip methods will lock and won't return until either: