org.apache.jmeter.util

Class SlowInputStream


public class SlowInputStream
extends FilterInputStream

InputStream wrapper to emulate a slow device, e.g. modem

Constructor Summary

SlowInputStream(InputStream in, int cps)
Wraps the input stream to emulate a slow device

Method Summary

int
read()
int
read(byte[] b, int off, int len)

Constructor Details

SlowInputStream

public SlowInputStream(InputStream in,
                       int cps)
Wraps the input stream to emulate a slow device
Parameters:
in - input stream
cps - characters per second to emulate

Method Details

read

public int read()
            throws IOException

read

public int read(byte[] b,
                int off,
                int len)
            throws IOException

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.