org.apache.lucene.store
Class BufferedIndexInput
- Cloneable
public abstract class BufferedIndexInput
Base implementation class for buffered
IndexInput
.
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.
|
clone , close , getFilePointer , length , readByte , readBytes , readChars , readInt , readLong , readString , readVInt , readVLong , seek |
clone
public Object clone()
Returns a clone of this stream.
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 interface IndexInput
getFilePointer
public long getFilePointer()
Returns the current position in this file, where the next read will
occur.
- getFilePointer in interface IndexInput
readByte
public byte readByte()
throws IOException
Reads and returns a single byte.
- readByte in interface IndexInput
readBytes
public void readBytes(byte[] b,
int offset,
int len)
throws IOException
Reads a specified number of bytes into an array at the specified offset.
- readBytes in interface IndexInput
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslen
- the number of bytes to read
readInternal
protected abstract void readInternal(byte[] b,
int offset,
int length)
throws IOException
Expert: implements buffer refill. Reads bytes from the current position
in the input.
b
- the array to read bytes intooffset
- the offset in the array to start storing byteslength
- the number of bytes to read
seek
public void seek(long pos)
throws IOException
Sets current position in this file, where the next read will occur.
- seek in interface IndexInput
seekInternal
protected abstract void seekInternal(long pos)
throws IOException
Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.