I\'d like to programmatically limit an upload or download operation in Java. I would assume that all I\'d need to do was do check how fast the upload is going and insert
You'll need some way for isHittingLimit to know how many bytes have been transmitted over how long. There's an interesting approach in this thread that you may be able to adapt.