Acme.Serve
Class ThrottledOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
Acme.Serve.ThrottledOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class ThrottledOutputStream
- extends FilterOutputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThrottledOutputStream
public ThrottledOutputStream(OutputStream out,
long maxBps)
parseThrottleFile
public static WildcardDictionary parseThrottleFile(String filename)
throws IOException
- Throws:
IOException
write
public void write(int b)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write
in class FilterOutputStream
- Throws:
IOException
Copyright © 2013. All Rights Reserved.