public class FolderWatcher extends java.util.Observable implements FolderListener
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,Entry> |
cache |
protected Location |
location |
| Constructor and Description |
|---|
FolderWatcher(Location location) |
FolderWatcher(java.lang.String... path) |
| Modifier and Type | Method and Description |
|---|---|
void |
folderChanged(java.util.Collection<Entry> added,
java.util.Collection<java.lang.String> removed,
boolean full)
Provide changes to the listener
|
java.util.Map<java.lang.String,Entry> |
getCache() |
java.util.Collection<Entry> |
getList() |
Location |
getLocation() |
protected Location location
protected java.util.Map<java.lang.String,Entry> cache
public FolderWatcher(java.lang.String... path)
public FolderWatcher(Location location)
public void folderChanged(java.util.Collection<Entry> added, java.util.Collection<java.lang.String> removed, boolean full)
FolderListenerIf either no items were added or removed the corresponding list must still be not null. The lists may not be altered by the listener implementations and may by unmodifiable.
folderChanged in interface FolderListeneradded - the folder entries that were addedremoved - the folder entries that where removedfull - true if this is not a change but a full
transmission, in this case the removed parameter
must be empty or null.public Location getLocation()
public java.util.Map<java.lang.String,Entry> getCache()
public java.util.Collection<Entry> getList()
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0