public class DirectoryResource extends Resource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADDED |
private java.io.File |
m_dir |
private java.util.Set |
m_files |
private java.util.Map |
m_times |
static java.lang.String |
MODIFIED |
static java.lang.String |
REMOVED |
m_eventSupport, m_previousModified| Constructor and Description |
|---|
DirectoryResource(java.lang.String resourceKey) |
| Modifier and Type | Method and Description |
|---|---|
long |
lastModified()
The time this was last modified.
|
void |
testModifiedAfter(long time)
Test whether this has been modified since time X
|
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListenersFrom, fireAndSetModifiedTime, getEventSupport, getPreviousModified, getResourceKey, hasListeners, hasListeners, removeAllPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setPreviousModified, toStringpublic static final java.lang.String ADDED
public static final java.lang.String REMOVED
public static final java.lang.String MODIFIED
private final java.io.File m_dir
private java.util.Set m_files
private java.util.Map m_times
public DirectoryResource(java.lang.String resourceKey)
throws java.lang.Exception
java.lang.Exceptionpublic void testModifiedAfter(long time)
testModifiedAfter in interface ModifiabletestModifiedAfter in class Resourcepublic long lastModified()
ResourcelastModified in interface ModifiablelastModified in class Resource