com.myJava.file.driver.cache
Class DataEntry

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

public class DataEntry
extends java.lang.Object


Author:
Olivier PETRUCCI

Areca Build ID : 7299034069467778562

Field Summary
protected  long length
           
protected static int UNSET
           
 
Constructor Summary
DataEntry()
           
 
Method Summary
 void clearChildren()
           
 int computeChildren()
           
 int getDepth()
           
 DataEntry getEntry(java.lang.String name)
          Returns :
-An entry if it is found
-Null if nothing was found in the cache we're not sure whether the file/directory exists

Throw a NonExistingEntryException if the entry does not exist
 long getLastModified()
           
 long getLength()
           
 java.util.Set getNames()
           
 boolean isDirectory()
           
 boolean isDirectorySet()
           
 boolean isExists()
           
 boolean isExistsSet()
           
 boolean isHidden()
           
 boolean isHiddenSet()
           
 boolean isPopulated()
           
 boolean isPopulated(java.lang.Object filter)
           
 boolean isReadable()
           
 boolean isReadableSet()
           
 boolean isSet(long tested)
           
 boolean isWritable()
           
 boolean isWritableSet()
           
 void putEntry(java.lang.String name, DataEntry entry)
           
 void reset()
           
 void setDirectory(boolean directory)
           
 void setExists(boolean exists)
           
 void setHidden(boolean hidden)
           
 void setLastModified(long lastModified)
           
 void setLength(long length)
           
 void setPopulated()
           
 void setPopulated(java.lang.Object filter)
           
 void setReadable(boolean readable)
           
 void setWritable(boolean writable)
           
 java.lang.String toString()
           
 void update(DataEntry o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNSET

protected static final int UNSET
See Also:
Constant Field Values

length

protected long length
Constructor Detail

DataEntry

public DataEntry()
Method Detail

getLength

public long getLength()

getDepth

public int getDepth()

setLength

public void setLength(long length)

computeChildren

public int computeChildren()

clearChildren

public void clearChildren()

putEntry

public void putEntry(java.lang.String name,
                     DataEntry entry)

getEntry

public DataEntry getEntry(java.lang.String name)
                   throws NonExistingEntryException
Returns :
-An entry if it is found
-Null if nothing was found in the cache we're not sure whether the file/directory exists

Throw a NonExistingEntryException if the entry does not exist

Throws:
NonExistingEntryException

getNames

public java.util.Set getNames()

setPopulated

public void setPopulated()

setPopulated

public void setPopulated(java.lang.Object filter)

isPopulated

public boolean isPopulated()

isPopulated

public boolean isPopulated(java.lang.Object filter)

toString

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

getLastModified

public long getLastModified()

setLastModified

public void setLastModified(long lastModified)

isSet

public boolean isSet(long tested)

isExists

public boolean isExists()

setExists

public void setExists(boolean exists)

reset

public void reset()

isExistsSet

public boolean isExistsSet()

isHidden

public boolean isHidden()

setHidden

public void setHidden(boolean hidden)

setDirectory

public void setDirectory(boolean directory)

isReadable

public boolean isReadable()

setReadable

public void setReadable(boolean readable)

isWritable

public boolean isWritable()

isDirectory

public boolean isDirectory()

setWritable

public void setWritable(boolean writable)

isHiddenSet

public boolean isHiddenSet()

isReadableSet

public boolean isReadableSet()

isWritableSet

public boolean isWritableSet()

isDirectorySet

public boolean isDirectorySet()

update

public void update(DataEntry o)