public class ConstantInputStream extends SdkInputStream
| Constructor and Description |
|---|
ConstantInputStream(long total,
byte val) |
ConstantInputStream(long total,
byte val,
boolean randomlyReturnZeros) |
| Modifier and Type | Method and Description |
|---|---|
int |
getRandomZerosCount() |
protected InputStream |
getWrappedInputStream()
Returns the underlying input stream, if any, from the subclass; or null
if there is no underlying input stream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
abort, abortIfNeeded, isMetricActivated, releaseavailable, close, mark, markSupported, read, reset, skippublic ConstantInputStream(long total,
byte val)
public ConstantInputStream(long total,
byte val,
boolean randomlyReturnZeros)
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int getRandomZerosCount()
protected InputStream getWrappedInputStream()
SdkInputStreamgetWrappedInputStream in class SdkInputStreamCopyright © 2025. All rights reserved.