com.myJava.file.driver.cache
Class DataEntry
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNSET
protected static final int UNSET
- See Also:
- Constant Field Values
length
protected long length
DataEntry
public DataEntry()
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)