org.apache.jmeter.util
Class SlowOutputStream
FilterOutputStream
org.apache.jmeter.util.SlowOutputStream
public class SlowOutputStream
extends FilterOutputStream
OutputStream filter to emulate a slow device, e.g. modem
SlowOutputStream(OutputStream out, int cps) - Create wrapped Output Stream toe emulate the requested CPS.
|
void | write(byte[] b, int off, int len)
|
void | write(int b)
|
SlowOutputStream
public SlowOutputStream(OutputStream out,
int cps)
Create wrapped Output Stream toe emulate the requested CPS.
out
- OutputStreamcps
- characters per second
write
public void write(byte[] b,
int off,
int len)
throws IOException
write
public void write(int b)
throws IOException
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.