public class RandomInputStream
extends java.io.InputStream
java.util.Random or one of its
subclasses java.security.SecureRandom,
iaik.security.random.SecRandom, etc.| 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