org.apache.lucene.store

Class BufferedIndexInput

public abstract class BufferedIndexInput extends IndexInput

Base implementation class for buffered {@link IndexInput}.
Method Summary
Objectclone()
longgetFilePointer()
bytereadByte()
voidreadBytes(byte[] b, int offset, int len)
protected abstract voidreadInternal(byte[] b, int offset, int length)
Expert: implements buffer refill.
voidseek(long pos)
protected abstract voidseekInternal(long pos)
Expert: implements seek.

Method Detail

clone

public Object clone()

getFilePointer

public long getFilePointer()

readByte

public byte readByte()

readBytes

public void readBytes(byte[] b, int offset, int len)

readInternal

protected abstract void readInternal(byte[] b, int offset, int length)
Expert: implements buffer refill. Reads bytes from the current position in the input.

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

seek

public void seek(long pos)

seekInternal

protected abstract void seekInternal(long pos)
Expert: implements seek. Sets current position in this file, where the next {@link #readInternal(byte[],int,int)} will occur.

See Also: (byte[],int,int)

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.