public final class BufferedChecksumStreamInput extends StreamInput
StreamInput
so anything read will update the checksumConstructor and Description |
---|
BufferedChecksumStreamInput(StreamInput in) |
BufferedChecksumStreamInput(StreamInput in,
BufferedChecksumStreamInput reuse) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close()
Closes the stream to further operations.
|
long |
getChecksum() |
void |
mark(int readlimit) |
boolean |
markSupported() |
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.
|
void |
resetDigest() |
long |
skip(long numBytes) |
getVersion, readAggregatorFactory, readBoolean, readByteArray, readBytesRef, readBytesRef, readBytesReference, readBytesReference, readDouble, readDoubleArray, readFloat, readFloatArray, readFully, readGenericValue, readGeoPoint, readInt, readIntArray, readList, readLong, readLongArray, readMap, readOptionalBoolean, readOptionalBytesReference, readOptionalFloat, readOptionalQuery, readOptionalStreamable, readOptionalString, readOptionalStringArray, readOptionalText, readOptionalVInt, readOptionalWriteable, readPhraseSuggestionSmoothingModel, readPipelineAggregatorFactory, readQuery, readRescorer, readScoreFunction, readShape, readShort, readSortBuilder, readString, readStringArray, readSuggestion, readTaskStatus, readText, readThrowable, readVInt, readVIntArray, readVLong, readVLongArray, readZLong, setVersion, wrap, wrap, wrap
public BufferedChecksumStreamInput(StreamInput in)
public BufferedChecksumStreamInput(StreamInput in, BufferedChecksumStreamInput reuse)
public long getChecksum()
public byte readByte() throws java.io.IOException
StreamInput
readByte
in class StreamInput
java.io.IOException
public void readBytes(byte[] b, int offset, int len) throws java.io.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 readjava.io.IOException
public void reset() throws java.io.IOException
StreamInput
reset
in class StreamInput
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
StreamInput
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class StreamInput
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public long skip(long numBytes) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class StreamInput
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.InputStream
public void resetDigest()