Closeable, Flushable, AutoCloseablepublic class SlowOutputStream extends FilterOutputStream
out| Constructor | Description |
|---|---|
SlowOutputStream(OutputStream out,
int cps) |
Create wrapped Output Stream toe emulate the requested CPS.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
close, flush, writepublic SlowOutputStream(OutputStream out, int cps)
out - OutputStreamcps - characters per secondpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamIOExceptionpublic void write(int b)
throws IOException
write in class FilterOutputStreamIOExceptionCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.