public class WhiteInputStream extends InputStream
InputStream which generates random values.| Constructor and Description |
|---|
WhiteInputStream()
Creates a new instance with
#UNLIMITED as limit. |
WhiteInputStream(long limit)
Creates a new instance with given
limit. |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Returns the number of bytes read so far.
|
ReadableByteChannel |
newChannel()
Constructs a channel that read bytes from this stream.
|
int |
read() |
available, close, mark, markSupported, read, read, reset, skippublic WhiteInputStream(long limit)
limit.limit - the maximum number of bytes can read; any negative value for
no limit.public WhiteInputStream()
#UNLIMITED as limit.public int read()
throws IOException
read in class InputStreamIOExceptionpublic ReadableByteChannel newChannel()
public long getCount()
Copyright © 2011-2013. All Rights Reserved.