|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.store.IndexInput
org.apache.lucene.store.ChecksumIndexInput
public class ChecksumIndexInput
Writes bytes through to a primary IndexOutput, computing checksum as it goes. Note that you cannot use seek().
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.store.IndexInput |
|---|
copyBuf |
| Constructor Summary | |
|---|---|
ChecksumIndexInput(IndexInput main)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.lucene.store.IndexInput |
|---|
clone, copyBytes, readBytes, readChars, readInt, readLong, readString, readStringStringMap, readVInt, readVLong, setModifiedUTF8StringsMode, skipChars |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChecksumIndexInput(IndexInput main)
| Method Detail |
|---|
public byte readByte()
throws IOException
IndexInput
readByte in class IndexInputIOExceptionIndexOutput.writeByte(byte)
public void readBytes(byte[] b,
int offset,
int len)
throws IOException
IndexInput
readBytes in class IndexInputb - the array to read bytes intooffset - the offset in the array to start storing byteslen - the number of bytes to read
IOExceptionIndexOutput.writeBytes(byte[],int)public long getChecksum()
public void close()
throws IOException
IndexInput
close in interface Closeableclose in class IndexInputIOExceptionpublic long getFilePointer()
IndexInput
getFilePointer in class IndexInputIndexInput.seek(long)public void seek(long pos)
IndexInput
seek in class IndexInputIndexInput.getFilePointer()public long length()
IndexInput
length in class IndexInput
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||