org.scohen.juploadr.upload
Class BandwidthThrottlingOutputStream
java.lang.Object
java.io.OutputStream
org.scohen.juploadr.upload.BandwidthThrottlingOutputStream
- public class BandwidthThrottlingOutputStream
- extends java.io.OutputStream
| Methods inherited from class java.io.OutputStream |
close, flush |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BandwidthThrottlingOutputStream
public BandwidthThrottlingOutputStream(java.io.OutputStream out,
int maxBytesPerSecond)
write
public void write(int b)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(byte[] b)
throws java.io.IOException
- Throws:
java.io.IOException
setMaxBytesPerSecond
public void setMaxBytesPerSecond(int bytesPerSecond)