to.etc.domui.util.resources
Class ClasspathJarRef
java.lang.Object
to.etc.domui.util.resources.ClasspathJarRef
- All Implemented Interfaces:
- IModifyableResource
public class ClasspathJarRef
- extends java.lang.Object
- implements IModifyableResource
A reference to a .jar file containing some resource. This has special code to handle
resources loaded from a jar to prevent per-classloader caching of loaded resources.
- Author:
- Frits Jalvingh
Created on Oct 19, 2009
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClasspathJarRef
public ClasspathJarRef(java.io.File src)
getNameList
public java.util.List<java.lang.String> getNameList()
isModified
public boolean isModified()
getLastModified
public long getLastModified()
- Description copied from interface:
IModifyableResource
- Return the current last modification time. This must return the ACTUAL modification time of the resource; the time
returned by this call will be compared with the time that the resource was last used (stored somewhere else) to decide if this
resource has changed in the meantime.
This call must return -1 for a resource that does not exist - because non-existence is a valid caching criteria too!
- Specified by:
getLastModified
in interface IModifyableResource
- Returns:
getResource
public java.io.InputStream getResource(java.lang.String relname)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object