org.apache.lucene.store
public abstract class BufferedIndexInput extends IndexInput
| Field Summary | |
|---|---|
| static int | BUFFER_SIZE Default buffer size |
| Constructor Summary | |
|---|---|
| BufferedIndexInput() | |
| BufferedIndexInput(int bufferSize) Inits BufferedIndexInput with a specific bufferSize | |
| Method Summary | |
|---|---|
| Object | clone() |
| int | getBufferSize() Returns buffer size. |
| long | getFilePointer() |
| byte | readByte() |
| void | readBytes(byte[] b, int offset, int len) |
| protected abstract void | readInternal(byte[] b, int offset, int length) Expert: implements buffer refill. |
| void | seek(long pos) |
| protected abstract void | seekInternal(long pos) Expert: implements seek. |
| void | setBufferSize(int newSize) Change the buffer size used by this IndexInput |
Parameters: b the array to read bytes into offset the offset in the array to start storing bytes length the number of bytes to read
(byte[],int,int) will occur.See Also: (byte[],int,int)