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, skip
public SlowInputStream(InputStream in, int cps)
in
- input streamcps
- characters per second to emulatepublic int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.