public final class BufferedChecksumStreamInput extends StreamInput
StreamInput
so anything read will update the checksumConstructor and Description |
---|
BufferedChecksumStreamInput(StreamInput in) |
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, 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, setVersion
available, mark, markSupported, read, read, skip
public BufferedChecksumStreamInput(StreamInput in)
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 intooffset
- the offset in the array to start storing byteslen
- the number of bytes to readIOException
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
Copyright © 2009–2015. All rights reserved.