Package org.apache.jmeter.util
Class SlowOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.apache.jmeter.util.SlowOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
OutputStream filter to emulate a slow device, e.g. modem
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
ConstructorDescriptionSlowOutputStream
(OutputStream out, int cps) Create wrapped Output Stream toe emulate the requested CPS. -
Method Summary
Methods inherited from class java.io.FilterOutputStream
close, flush, write
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
SlowOutputStream
Create wrapped Output Stream toe emulate the requested CPS.- Parameters:
out
- OutputStreamcps
- characters per second
-
-
Method Details
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classFilterOutputStream
- Throws:
IOException
-