org.compass.needle.terracotta
Class TerracottaFile

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

final class TerracottaFile
extends Object

Author:
kimchy

Nested Class Summary
static class TerracottaFile.Buffer
           
static class TerracottaFile.BufferWrapper
           
 
Field Summary
(package private)  long length
           
 
Constructor Summary
TerracottaFile()
           
 
Method Summary
(package private)  byte[] addBuffer(int size)
           
(package private)  void addBuffers(byte[]... newBuffers)
           
(package private)  byte[] getBuffer(int index)
           
(package private)  long getLastModified()
           
(package private)  long getLength()
           
(package private)  int getNumBuffers()
           
 void lock()
           
(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)

addBuffers

final void addBuffers(byte[]... newBuffers)

setFirstBuffer

final void setFirstBuffer(byte[] buffer)

getBuffer

final byte[] getBuffer(int index)

getNumBuffers

final int getNumBuffers()


Copyright (c) 2004-2009 The Compass Project.