|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jomic.tools.ArchiveCacheEntry
public class ArchiveCacheEntry
An entry in the cache.
Constructor Summary | |
---|---|
ArchiveCacheEntry(java.io.File newArchiveFile,
int newIndex)
|
|
ArchiveCacheEntry(java.io.File newArchiveFile,
long newLastAccessed,
long newLastModified,
int newIndex)
|
Method Summary | |
---|---|
java.io.File |
getArchiveFile()
Get the archive file from which the cache was extracted. |
java.io.File |
getCachedDir(java.io.File baseDir)
Get directory in baseDir where the files extracted from the archive are
located. |
java.lang.String |
getCachedDirName()
Get relative directory name where the files extracted from the archive are located. |
int |
getIndex()
Get the index in the list of cached archives used to lookup the archive path. |
long |
getLastAccessed()
Get the timestamp when the cache was last accessed. |
long |
getLastModified()
Get the timestamp when the archive was cached. |
int |
getLockCount()
Number of clients that locked this entry to prevent it from being removed. |
long |
getSize()
Get the number of bytes used by all files in the archive. |
void |
lock()
|
void |
unlock()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArchiveCacheEntry(java.io.File newArchiveFile, int newIndex)
public ArchiveCacheEntry(java.io.File newArchiveFile, long newLastAccessed, long newLastModified, int newIndex)
Method Detail |
---|
public java.io.File getArchiveFile()
public java.io.File getCachedDir(java.io.File baseDir)
baseDir
where the files extracted from the archive are
located.
public java.lang.String getCachedDirName()
public int getIndex()
public long getLastAccessed()
public long getLastModified()
public int getLockCount()
public long getSize()
public void lock()
public void unlock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |