com.judoscript.user.httpserver
Class ThrottledOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
com.judoscript.user.httpserver.ThrottledOutputStream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class ThrottledOutputStream
- extends java.io.FilterOutputStream
Fields inherited from class java.io.FilterOutputStream |
out |
Method Summary |
static java.lang.String[] |
splitStr(java.lang.String str)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.io.FilterOutputStream |
close, flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThrottledOutputStream
public ThrottledOutputStream(java.io.OutputStream out,
long maxBps)
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterOutputStream
- Throws:
java.io.IOException
splitStr
public static java.lang.String[] splitStr(java.lang.String str)