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, release
available, close, mark, markSupported, read, reset, skip
public 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 InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int getRandomZerosCount()
protected InputStream getWrappedInputStream()
SdkInputStream
getWrappedInputStream
in class SdkInputStream
Copyright © 2024. All rights reserved.