public final class BufferedChecksumStreamInput extends StreamInput
StreamInput so anything read will update the checksum| コンストラクタと説明 |
|---|
BufferedChecksumStreamInput(StreamInput in) |
BufferedChecksumStreamInput(StreamInput in,
BufferedChecksumStreamInput reuse) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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 クラス内 StreamInputIOExceptionpublic void readBytes(byte[] b,
int offset,
int len)
throws IOException
StreamInputreadBytes クラス内 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 クラス内 StreamInputIOExceptionpublic int read()
throws IOException
read クラス内 InputStreamIOExceptionpublic void close()
throws IOException
StreamInputclose インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 StreamInputIOExceptionpublic boolean markSupported()
markSupported クラス内 InputStreampublic long skip(long numBytes)
throws IOException
skip クラス内 InputStreamIOExceptionpublic int available()
throws IOException
available クラス内 InputStreamIOExceptionpublic void mark(int readlimit)
mark クラス内 InputStreampublic void resetDigest()
Copyright © 2009–2016. All rights reserved.