public class JEIndexInput extends IndexInput
| Modifier and Type | Field and Description |
|---|---|
protected Block |
block |
protected JEDirectory |
directory |
protected File |
file |
protected long |
length |
protected long |
position |
| Modifier | Constructor and Description |
|---|---|
protected |
JEIndexInput(JEDirectory directory,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Returns a clone of this stream.
|
void |
close()
Closes the stream to further operations.
|
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.
|
readBytes, readChars, readInt, readLong, readString, readStringStringMap, readVInt, readVLong, setModifiedUTF8StringsMode, skipCharsprotected long position
protected long length
protected JEDirectory directory
protected Block block
protected File file
protected JEIndexInput(JEDirectory directory, java.lang.String name) throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object clone()
IndexInputClones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
clone in class IndexInputpublic void close()
throws java.io.IOException
IndexInputclose in class IndexInputjava.io.IOExceptionpublic long length()
IndexInputlength in class IndexInputpublic 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 void seek(long pos)
throws java.io.IOException
IndexInputseek in class IndexInputjava.io.IOExceptionIndexInput.getFilePointer()public long getFilePointer()
IndexInputgetFilePointer in class IndexInputIndexInput.seek(long)Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.