|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
FileCache-Entry.
Method Summary | |
java.io.File |
getFile()
Returns the file object this entry has cached. |
java.io.InputStream |
getNewInputStream()
Returns a new InputStream for the cached file. |
int |
getTimeToLive()
Returns the length of the validity interval in ms without checking, whether the cached content is still valid. |
boolean |
isStale()
Indicates whether the cached content is still valid. |
long |
lastModified()
Last modification of this cached file. |
long |
length()
Length of this cached file. |
void |
setTimeToLive(int timeToLive)
Sets the length of the validity interval in ms without checking, whether the cached content is still valid. |
Method Detail |
public java.io.InputStream getNewInputStream() throws java.io.IOException
java.io.IOException
public java.io.File getFile()
public long length()
public long lastModified()
public void setTimeToLive(int timeToLive)
public int getTimeToLive()
public boolean isStale()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |