Package org.apache.jmeter.util
Class SlowInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.jmeter.util.SlowInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
InputStream wrapper to emulate a slow device, e.g. modem
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionSlowInputStream(InputStream in, int cps) Wraps the input stream to emulate a slow device -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
SlowInputStream
Wraps the input stream to emulate a slow device- Parameters:
in- input streamcps- characters per second to emulate
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-