org.apache.jmeter.util

Class SlowOutputStream


public class SlowOutputStream
extends FilterOutputStream

OutputStream filter to emulate a slow device, e.g. modem

Constructor Summary

SlowOutputStream(OutputStream out, int cps)
Create wrapped Output Stream toe emulate the requested CPS.

Method Summary

void
write(byte[] b, int off, int len)
void
write(int b)

Constructor Details

SlowOutputStream

public SlowOutputStream(OutputStream out,
                        int cps)
Create wrapped Output Stream toe emulate the requested CPS.
Parameters:
out - OutputStream
cps - characters per second

Method Details

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.