org.biffle.cliff.pearl2
Class FileInfoCache

java.lang.Object
  |
  +--org.biffle.cliff.pearl2.FileInfoCache
All Implemented Interfaces:
FileInfoListener

public class FileInfoCache
extends java.lang.Object
implements FileInfoListener


Nested Class Summary
protected  class FileInfoCache.FileInfoIterator
           
 
Constructor Summary
FileInfoCache()
           
FileInfoCache(long serial)
           
 
Method Summary
 void addFileInfo(FileInfo info)
          Supplies the listener with another FileInfo object.
protected static java.lang.String getCacheDirForSerial(long serial)
           
protected static java.lang.String getCachePath()
           
 FileInfo getFileByFID(int fid)
           
 int getFileCount()
           
 int getGeneration()
           
 int getMaxFID()
           
 void invalidate()
           
 java.util.Iterator iterator()
           
protected  void parseString(java.lang.String cache)
           
 void save()
           
 void setGeneration(int generation)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileInfoCache

public FileInfoCache(long serial)
              throws java.io.IOException

FileInfoCache

public FileInfoCache()
Method Detail

getCachePath

protected static java.lang.String getCachePath()

getCacheDirForSerial

protected static java.lang.String getCacheDirForSerial(long serial)

addFileInfo

public void addFileInfo(FileInfo info)
Description copied from interface: FileInfoListener
Supplies the listener with another FileInfo object.

Specified by:
addFileInfo in interface FileInfoListener

getFileCount

public int getFileCount()

getFileByFID

public FileInfo getFileByFID(int fid)

parseString

protected void parseString(java.lang.String cache)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

save

public void save()
          throws java.io.IOException
java.io.IOException

getGeneration

public int getGeneration()

setGeneration

public void setGeneration(int generation)

invalidate

public void invalidate()

iterator

public java.util.Iterator iterator()

getMaxFID

public int getMaxFID()