public class RandomInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
RandomInputStream(java.util.Random random)
Create a new RandomInputStream that reads from the specified
random number generator.
|
public RandomInputStream(java.util.Random random)
public int read(byte[] b)
read in class java.io.InputStreampublic int read(byte[] b,
int off,
int len)
read in class java.io.InputStreampublic int read()
read in class java.io.InputStreampublic int available()
Integer.MAX_VALUE (231 - 1).
This method never throws an IOException.available in class java.io.InputStream