|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.osesb.utilities.cache.CacheEntry
org.osesb.utilities.cache.TextFileCacheEntry
public class TextFileCacheEntry
TextFileCacheEntry wraps a cached File in a TextFileCache.
| Field Summary | |
|---|---|
protected java.lang.String |
fileText
The text contents of the cached File. |
protected long |
lastModified
The value of the File.lastModified() stamp when the File was cached. |
| Fields inherited from class org.osesb.utilities.cache.CacheEntry |
|---|
accessCount, ACCESSCOUNT_EVICTIONSTRATEGY, cachedObject, cacheKey, compareField, lastAccessedTime, LASTACCESSTIME_EVICTIONSTRATEGY, log, thisClassName, toStringSDF, toStringTime |
| Constructor Summary | |
|---|---|
TextFileCacheEntry(java.io.File file)
Constructs a TextFileCacheEntry object. |
|
| Method Summary | |
|---|---|
java.io.File |
getCachedFile()
Return the cached File. |
java.lang.String |
getFileText()
Return the entry text. |
long |
getLastModified()
Return the cache entry's last modified stamp. |
java.lang.String |
toString()
Returns the String representation of this TextFileCacheEntry. |
| Methods inherited from class org.osesb.utilities.cache.CacheEntry |
|---|
compareTo, getAccessCount, getCachedObject, getCacheKey, getCompareFieldName, getLastAccessedTime, incrementAccessCount, setAccessCount, setCompareField, setLastAccessedTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String fileText
protected long lastModified
| Constructor Detail |
|---|
public TextFileCacheEntry(java.io.File file)
throws java.lang.Exception
file - The File to cache.
java.lang.Exception - if file cannot be cached.| Method Detail |
|---|
public java.io.File getCachedFile()
public long getLastModified()
public java.lang.String getFileText()
public java.lang.String toString()
toString in class CacheEntry
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||