public final class BufferedChecksumStreamInput extends StreamInput
StreamInput so anything read will update the checksum| Constructor 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, readBoolean, readByteArray, readBytesRef, readBytesRef, readBytesReference, readBytesReference, readDouble, readDoubleArray, readFloat, readFloatArray, readFully, readGenericValue, readGeoPoint, readInt, readIntArray, readList, readLong, readLongArray, readMap, readOptionalBoolean, readOptionalStreamable, readOptionalString, readOptionalText, readOptionalVInt, readShort, readString, readStringArray, readTaskStatus, readText, readThrowable, readVInt, readVIntArray, readVLong, readVLongArray, setVersion, wrap, wrap, wrapread, readpublic BufferedChecksumStreamInput(StreamInput in)
public BufferedChecksumStreamInput(StreamInput in, BufferedChecksumStreamInput reuse)
public long getChecksum()
public byte readByte()
throws IOException
StreamInputreadByte in class StreamInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
StreamInputreadBytes in class StreamInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readIOExceptionpublic void reset()
throws IOException
StreamInputreset in class StreamInputIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
StreamInputclose in interface Closeableclose in interface AutoCloseableclose in class StreamInputIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic long skip(long numBytes)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class StreamInputIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic void resetDigest()
Copyright © 2009–2017. All rights reserved.