public class ConstantInputStream extends com.amazonaws.internal.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() |
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()
getWrappedInputStream in class com.amazonaws.internal.SdkInputStreamCopyright © 2016. All rights reserved.