com.myJava.file.driver.cache
Class FileDataCache

java.lang.Object
  extended by com.myJava.file.driver.cache.FileDataCache

public class FileDataCache
extends java.lang.Object


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Constructor Summary
FileDataCache(java.lang.String root, int maxDepth)
           
 
Method Summary
 void checkDepth(java.lang.String fullPath)
           
 void clear()
           
 int computeSize()
           
 DataEntry lookup(java.lang.String fullPath)
           
 DataEntry lookupParent(java.lang.String fullPath)
           
 DataEntry put(java.lang.String fullPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDataCache

public FileDataCache(java.lang.String root,
                     int maxDepth)
Method Detail

computeSize

public int computeSize()

clear

public void clear()

lookup

public DataEntry lookup(java.lang.String fullPath)
                 throws NonExistingEntryException,
                        MaxDepthReachedException
Throws:
NonExistingEntryException
MaxDepthReachedException

lookupParent

public DataEntry lookupParent(java.lang.String fullPath)
                       throws NonExistingEntryException
Throws:
NonExistingEntryException

put

public DataEntry put(java.lang.String fullPath)
              throws MaxDepthReachedException
Throws:
MaxDepthReachedException

checkDepth

public void checkDepth(java.lang.String fullPath)
                throws MaxDepthReachedException
Throws:
MaxDepthReachedException