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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FileInfoCache
public FileInfoCache(long serial)
throws java.io.IOException
FileInfoCache
public FileInfoCache()
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()