public final class BufferedChecksumStreamOutput extends StreamOutput
StreamOutput so anything written will update the checksum| Constructor and Description |
|---|
BufferedChecksumStreamOutput(StreamOutput out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this stream to further operations.
|
void |
flush()
Forces any buffered output to be written.
|
long |
getChecksum() |
void |
reset() |
void |
resetDigest() |
void |
writeByte(byte b)
Writes a single byte.
|
void |
writeBytes(byte[] b,
int offset,
int length)
Writes an array of bytes.
|
getVersion, position, seek, setVersion, write, write, writeArray, writeBoolean, writeByteArray, writeBytes, writeBytes, writeBytesRef, writeBytesReference, writeDouble, writeDoubleArray, writeException, writeFloat, writeFloatArray, writeGenericValue, writeGeoPoint, writeInt, writeIntArray, writeList, writeLong, writeLongArray, writeMap, writeMap, writeMapOfLists, writeMapWithConsistentOrder, writeNamedWriteable, writeNamedWriteableList, writeOptionalArray, writeOptionalBoolean, writeOptionalBytesReference, writeOptionalDouble, writeOptionalFloat, writeOptionalLong, writeOptionalNamedWriteable, writeOptionalStreamable, writeOptionalString, writeOptionalStringArray, writeOptionalText, writeOptionalTimeZone, writeOptionalVInt, writeOptionalWriteable, writeShort, writeStreamableList, writeString, writeStringArray, writeStringArrayNullable, writeStringList, writeText, writeTimeZone, writeVInt, writeVIntArray, writeVLong, writeVLongArray, writeZLongpublic BufferedChecksumStreamOutput(StreamOutput out)
public long getChecksum()
public void writeByte(byte b)
throws java.io.IOException
StreamOutputwriteByte in class StreamOutputjava.io.IOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws java.io.IOException
StreamOutputwriteBytes in class StreamOutputb - the bytes to writeoffset - the offset in the byte arraylength - the number of bytes to writejava.io.IOExceptionpublic void flush()
throws java.io.IOException
StreamOutputflush in interface java.io.Flushableflush in class StreamOutputjava.io.IOExceptionpublic void close()
throws java.io.IOException
StreamOutputclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class StreamOutputjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class StreamOutputjava.io.IOExceptionpublic void resetDigest()