public class DelayOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DISABLE_DELAY |
| Constructor and Description |
|---|
DelayOutputStream(java.io.OutputStream outputStream,
long transmissionDelay,
double maxFlowRate) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enqueue(byte[] bytes) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public DelayOutputStream(java.io.OutputStream outputStream,
long transmissionDelay,
double maxFlowRate)
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionprotected void enqueue(byte[] bytes)
throws java.io.IOException
java.io.IOException