|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.servlet.SiteResourceLoader.SiteResourceBundle
public static class SiteResourceLoader.SiteResourceBundle
Encapsulates the information we need to load data from a site resource bundle as well as to determine whether the loaded bundle is up to date.
| Field Summary | |
|---|---|
protected long |
_lastModified
The last modified time of the jar file at the time that we opened it for reading. |
File |
file
A handle on the site-specific jar file. |
JarFile |
jarFile
The object through which we load resources from the site-specific jar file. |
| Constructor Summary | |
|---|---|
SiteResourceLoader.SiteResourceBundle(File file)
Constructs a new site resource bundle. |
|
| Method Summary | |
|---|---|
long |
getLastModified()
Returns the last modified time of the underlying jar file. |
InputStream |
getResourceAsStream(String path)
Fetches the specified resource from our site-specific jar file. |
protected void |
refreshJarFile()
Reopens our site-specific jar file if it has been modified since it was last opened. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public JarFile jarFile
public File file
protected long _lastModified
| Constructor Detail |
|---|
public SiteResourceLoader.SiteResourceBundle(File file)
throws IOException
IOException| Method Detail |
|---|
public InputStream getResourceAsStream(String path)
throws IOException
IOException
public long getLastModified()
throws IOException
IOExceptionpublic String toString()
toString in class Object
protected void refreshJarFile()
throws IOException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||