public final class BufferedChecksumStreamInput extends FilterStreamInput
StreamInput so anything read will update the checksumdelegate| Constructor and Description |
|---|
BufferedChecksumStreamInput(StreamInput in) |
BufferedChecksumStreamInput(StreamInput in,
BufferedChecksumStreamInput reuse) |
| Modifier and Type | Method and Description |
|---|---|
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() |
void |
resetDigest() |
long |
skip(long numBytes) |
available, close, ensureCanReadBytes, getVersion, setVersionreadArray, readBoolean, readByteArray, readBytesRef, readBytesRef, readBytesReference, readBytesReference, readDouble, readDoubleArray, readException, readFloat, readFloatArray, readFully, readGenericValue, readGeoPoint, readInt, readIntArray, readList, readLong, readLongArray, readMap, readMap, readMapOfLists, readNamedWriteable, readNamedWriteable, readNamedWriteableList, readOptionalArray, readOptionalBoolean, readOptionalBytesReference, readOptionalDouble, readOptionalFloat, readOptionalLong, readOptionalNamedWriteable, readOptionalStreamable, readOptionalString, readOptionalStringArray, readOptionalText, readOptionalTimeZone, readOptionalVInt, readOptionalWriteable, readShort, readStreamableList, readString, readStringArray, readText, readTimeZone, readVInt, readVIntArray, readVLong, readVLongArray, readZLong, wrap, wrappublic BufferedChecksumStreamInput(StreamInput in)
public BufferedChecksumStreamInput(StreamInput in, BufferedChecksumStreamInput reuse)
public long getChecksum()
public byte readByte()
throws java.io.IOException
StreamInputreadByte in class FilterStreamInputjava.io.IOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
StreamInputreadBytes in class FilterStreamInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class FilterStreamInputjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class FilterStreamInputjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.InputStreampublic long skip(long numBytes)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark in class java.io.InputStreampublic void resetDigest()