FileDocCategorySizeDatePackage
SlowInputStream.javaAPI DocApache Poi 3.0.11450Mon Jan 01 12:39:44 GMT 2007org.apache.poi.poifs.filesystem

SlowInputStream

public class SlowInputStream extends FilterInputStream
Returns a random amount of requested data. Used to check conformance with InputStream API contracts.

Fields Summary
private Random
r
Constructors Summary
public SlowInputStream(InputStream in)

    
       
        super(in);
    
Methods Summary
public intread(byte[] b, int off, int len)

        return super.read(b, off, r.nextInt(len) + 1);