| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.xnap.io.ThrottledInputStream
public class ThrottledInputStream
The global throtteled InputStream. All downloads should pipe their data through this stream.
| Field Summary | 
|---|
| Fields inherited from class java.io.FilterInputStream | 
|---|
| in | 
| Constructor Summary | |
|---|---|
| ThrottledInputStream(java.io.InputStream in) | |
| Method Summary | |
|---|---|
|  int | read(byte[] b,
     int off,
     int len) | 
| static void | setBandwidth(long newValue) | 
| Methods inherited from class java.io.FilterInputStream | 
|---|
| available, close, mark, markSupported, read, read, reset, skip | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ThrottledInputStream(java.io.InputStream in)
| Method Detail | 
|---|
public static void setBandwidth(long newValue)
public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||