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 SummaryFields inherited from class java.io.FilterInputStreamin
- 
Constructor SummaryConstructorsConstructorDescriptionSlowInputStream(InputStream in, int cps) Wraps the input stream to emulate a slow device
- 
Method SummaryMethods inherited from class java.io.FilterInputStreamavailable, close, mark, markSupported, read, reset, skipMethods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
- 
Constructor Details- 
SlowInputStreamWraps the input stream to emulate a slow device- Parameters:
- in- input stream
- cps- characters per second to emulate
 
 
- 
- 
Method Details- 
read- Overrides:
- readin class- FilterInputStream
- Throws:
- IOException
 
- 
read- Overrides:
- readin class- FilterInputStream
- Throws:
- IOException
 
 
-