|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.util.JvCachedFile
public class JvCachedFile
Information about a file in a JvFileCache.
| Field Summary | |
|---|---|
protected File |
file
|
static int |
FILE_NAME_MAX
The maximum length of a file name. |
protected Properties |
properties
|
protected File |
propertiesFile
|
protected URL |
url
|
| Constructor Summary | |
|---|---|
JvCachedFile(JvFileCache fileCache,
URL url)
Create a new JvCachedFile. |
|
| Method Summary | |
|---|---|
boolean |
exists()
Determine if the URL has already been cached. |
String |
getEtag()
|
long |
getExpires()
|
File |
getFile()
|
long |
getLastModified()
|
long |
getLastRequested()
|
long |
getLength()
|
URL |
getURL()
|
protected String |
mapName()
Map the name of the original file name to a unique cache file name that is filesystem-safe. |
protected void |
readProperties()
Read the meta information about the URL. |
void |
setEtag(String etag)
|
void |
setExpires(long expires)
|
void |
setLastModified(long lastModified)
|
void |
setLastRequested(long lastRequested)
|
String |
toString()
|
void |
writeProperties()
Write the meta information about the URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int FILE_NAME_MAX
protected URL url
protected File file
protected File propertiesFile
protected Properties properties
| Constructor Detail |
|---|
public JvCachedFile(JvFileCache fileCache,
URL url)
JvCachedFile.
fileCache - the file cache this cached file will be part ofurl - the URL of the file being cached| Method Detail |
|---|
protected String mapName()
public boolean exists()
protected void readProperties()
public void writeProperties()
public URL getURL()
public File getFile()
public long getLength()
public long getLastModified()
public void setLastModified(long lastModified)
public long getLastRequested()
public void setLastRequested(long lastRequested)
public long getExpires()
public void setExpires(long expires)
public String getEtag()
public void setEtag(String etag)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||