public final class BufferedChecksumStreamInput extends StreamInput
StreamInput so anything read will update the checksum
| Constructor and Description |
|---|
BufferedChecksumStreamInput(StreamInput
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream to further operations.
|
long |
getChecksum()
|
int |
read()
|
byte |
readByte()
Reads and returns a single byte.
|
void |
readBytes(byte[] b, int offset, int len)
Reads a specified number of bytes into an array at the specified offset.
|
void |
reset()
Resets the stream.
|
getVersion, readBoolean, readByteArray, readBytesRef, readBytesRef, readBytesReference, readBytesReference, readDouble, readDoubleArray, readFloat, readFloatArray, readFully, readGenericValue, readInt, readIntArray, readLong, readLongArray, readMap, readOptionalBoolean, readOptionalSharedString, readOptionalStreamable, readOptionalString, readOptionalText, readSharedString, readSharedText, readShort, readString, readStringArray, readText, readTextArray, readVInt, readVLong, setVersionavailable, mark, markSupported, read, read, skippublic BufferedChecksumStreamInput(StreamInputin)
public long getChecksum()
public byte readByte()
throws IOException
StreamInput
readByte in class
StreamInput
IOException
public void readBytes(byte[] b,
int offset,
int len)
throws IOException
StreamInput
readBytes in class
StreamInput
b - the array to read bytes into
offset - the offset in the array to start storing bytes
len - the number of bytes to read
IOException
public void reset()
throws IOException
StreamInput
reset in class
StreamInput
IOException
public int read()
throws IOException
read in class
InputStream
IOException
public void close()
throws IOException
StreamInput
close in interface
Closeable
close in interface
AutoCloseable
close in class
StreamInput
IOException