public class ChecksumIndexInput extends IndexInput
| Constructor and Description |
|---|
ChecksumIndexInput(IndexInput main) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream to further operations.
|
long |
getChecksum() |
long |
getFilePointer()
Returns the current position in this file, where the next read will
occur.
|
long |
length()
The number of bytes in the file.
|
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 |
seek(long pos)
Sets current position in this file, where the next read will occur.
|
clone, readBytes, readChars, readInt, readLong, readString, readStringStringMap, readVInt, readVLong, setModifiedUTF8StringsMode, skipCharspublic ChecksumIndexInput(IndexInput main)
public byte readByte()
throws java.io.IOException
IndexInputreadByte in class IndexInputjava.io.IOExceptionIndexOutput.writeByte(byte)public void readBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
IndexInputreadBytes in class IndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to readjava.io.IOExceptionIndexOutput.writeBytes(byte[],int)public long getChecksum()
public void close()
throws java.io.IOException
IndexInputclose in class IndexInputjava.io.IOExceptionpublic long getFilePointer()
IndexInputgetFilePointer in class IndexInputIndexInput.seek(long)public void seek(long pos)
IndexInputseek in class IndexInputIndexInput.getFilePointer()public long length()
IndexInputlength in class IndexInputCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.