org.compass.needle.terracotta
Class TerracottaFile

java.lang.Object
  extended by org.compass.needle.terracotta.TerracottaFile

final class TerracottaFile
extends Object

Author:
kimchy

Field Summary
(package private)  long length
           
 
Constructor Summary
TerracottaFile()
           
 
Method Summary
(package private)  byte[] addBuffer(int size)
           
(package private)  byte[] getBuffer(int index)
           
(package private)  long getLastModified()
           
(package private)  long getLength()
           
(package private)  int getNumBuffers()
           
 void lock()
           
(package private)  byte[] newBuffer(int size)
          Expert: allocate a new buffer.
(package private)  void setFirstBuffer(byte[] buffer)
           
(package private)  void setLastModified(long lastModified)
           
(package private)  void setLength(long length)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

length

long length
Constructor Detail

TerracottaFile

TerracottaFile()
Method Detail

lock

public void lock()

unlock

public void unlock()

getLength

long getLength()

setLength

void setLength(long length)

getLastModified

long getLastModified()

setLastModified

void setLastModified(long lastModified)

addBuffer

final byte[] addBuffer(int size)

setFirstBuffer

final void setFirstBuffer(byte[] buffer)

getBuffer

final byte[] getBuffer(int index)

getNumBuffers

final int getNumBuffers()

newBuffer

byte[] newBuffer(int size)
Expert: allocate a new buffer. Subclasses can allocate differently.

Parameters:
size - size of allocated buffer.
Returns:
allocated buffer.


Copyright (c) 2004-2008 The Compass Project.