Closeable, AutoCloseable, Releasable, MetricAwarepublic class ConstantInputStream extends SdkInputStream
| Constructor | Description |
|---|---|
ConstantInputStream(long total,
byte val) |
|
ConstantInputStream(long total,
byte val,
boolean randomlyReturnZeros) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getRandomZerosCount() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
available, close, mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferToequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreleaseisMetricActivated, releasepublic 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()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.