Closeable
, AutoCloseable
, Releasable
, MetricAware
public 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, transferTo
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
isMetricActivated, release
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()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.