File
Doc
Category
Size
Date
Package
SlowInputStream.java
API Doc
Apache Poi 3.0.1
1450
Mon Jan 01 12:39:44 GMT 2007
org.apache.poi.poifs.filesystem
SlowInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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
int
read
(
byte[]
b,
int
off,
int
len)
return super.read(b, off, r.nextInt(len) + 1);
Java Code Source