org.apache.lucene.store.bytebuffer
Class ByteBufferFile

java.lang.Object
  extended by org.apache.lucene.store.bytebuffer.ByteBufferFile

public class ByteBufferFile
extends java.lang.Object


Constructor Summary
ByteBufferFile(ByteBufferDirectory dir, int bufferSize)
           
 
Method Summary
protected  void addBuffer(java.nio.ByteBuffer buffer)
           
protected  java.nio.ByteBuffer getBuffer(int index)
           
 long getLastModified()
           
 long getLength()
           
protected  int numBuffers()
           
protected  void setLastModified(long lastModified)
           
protected  void setLength(long length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferFile

public ByteBufferFile(ByteBufferDirectory dir,
                      int bufferSize)
Method Detail

getLength

public long getLength()

setLength

protected void setLength(long length)

getLastModified

public long getLastModified()

setLastModified

protected void setLastModified(long lastModified)

addBuffer

protected final void addBuffer(java.nio.ByteBuffer buffer)

getBuffer

protected final java.nio.ByteBuffer getBuffer(int index)

numBuffers

protected final int numBuffers()