public class SlowInputStream extends FilterInputStream
in| Constructor and Description |
|---|
SlowInputStream(InputStream in,
int cps)
Wraps the input stream to emulate a slow device
|
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, close, mark, markSupported, read, reset, skippublic SlowInputStream(InputStream in, int cps)
in - input streamcps - characters per second to emulatepublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.