|
|||||||||||
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.BufferedIndexInput
Base implementation class for buffered IndexInput
.
Constructor Summary | |
BufferedIndexInput()
|
Method Summary | |
Object |
clone()
Returns a clone of this stream. |
long |
getFilePointer()
Returns the current position in this file, where the next read will occur. |
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. |
protected abstract void |
readInternal(byte[] b,
int offset,
int length)
Expert: implements buffer refill. |
void |
seek(long pos)
Sets current position in this file, where the next read will occur. |
protected abstract void |
seekInternal(long pos)
Expert: implements seek. |
Methods inherited from class org.apache.lucene.store.IndexInput |
close, length, readChars, readInt, readLong, readString, readVInt, readVLong |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BufferedIndexInput()
Method Detail |
public byte readByte() throws IOException
IndexInput
readByte
in class IndexInput
IOException
IndexOutput.writeByte(byte)
public void readBytes(byte[] b, int offset, int len) throws IOException
IndexInput
readBytes
in class IndexInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to read
IOException
IndexOutput.writeBytes(byte[],int)
protected abstract void readInternal(byte[] b, int offset, int length) throws IOException
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslength
- the number of bytes to read
IOException
public long getFilePointer()
IndexInput
getFilePointer
in class IndexInput
IndexInput.seek(long)
public void seek(long pos) throws IOException
IndexInput
seek
in class IndexInput
IOException
IndexInput.getFilePointer()
protected abstract void seekInternal(long pos) throws IOException
readInternal(byte[],int,int)
will occur.
IOException
readInternal(byte[],int,int)
public Object clone()
IndexInput
Clones 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 IndexInput
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |