Package | Description |
---|---|
org.apache.commons.vfs2 |
The public VFS API.
|
org.apache.commons.vfs2.events |
VFS Events
|
org.apache.commons.vfs2.impl |
The standard VFS implementation.
|
org.apache.commons.vfs2.provider |
The File Provider API, and utility classes.
|
org.apache.commons.vfs2.util |
Utility classes used by the VFS.
|
Modifier and Type | Method and Description |
---|---|
void |
FileSystem.addListener(FileObject file,
FileListener listener)
Adds a listener on a file in this file system.
|
void |
FileSystem.removeListener(FileObject file,
FileListener listener)
Removes a listener from a file in this file system.
|
Modifier and Type | Method and Description |
---|---|
void |
ChangedEvent.notify(FileListener listener) |
abstract void |
AbstractFileChangeEvent.notify(FileListener listener) |
void |
DeleteEvent.notify(FileListener listener) |
void |
CreateEvent.notify(FileListener listener) |
Modifier and Type | Field and Description |
---|---|
private FileListener |
DefaultFileMonitor.listener
A listener object that if set, is notified on file creation and deletion.
|
Modifier and Type | Method and Description |
---|---|
(package private) FileListener |
DefaultFileMonitor.getFileListener()
Access method to get the current FileListener object notified when there
are changes with the files added.
|
Constructor and Description |
---|
DefaultFileMonitor(FileListener listener) |
Modifier and Type | Class and Description |
---|---|
class |
DelegateFileObject<AFS extends AbstractFileSystem>
A file backed by another file.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<FileName,java.util.ArrayList<FileListener>> |
AbstractFileSystem.listenerMap
Map from FileName to an ArrayList of listeners for that file.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractFileSystem.addListener(FileObject file,
FileListener listener)
Adds a listener on a file in this file system.
|
void |
AbstractFileSystem.removeListener(FileObject file,
FileListener listener)
Removes a listener from a file in this file system.
|
Modifier and Type | Class and Description |
---|---|
class |
WeakRefFileListener
Wrap a listener with a WeakReference.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.ref.WeakReference<FileListener> |
WeakRefFileListener.listener |
Modifier and Type | Method and Description |
---|---|
protected FileListener |
WeakRefFileListener.getListener()
returns the wrapped listener.
|
Modifier and Type | Method and Description |
---|---|
static void |
WeakRefFileListener.installListener(FileObject file,
FileListener listener)
This will install the
listener at the given file . |
Constructor and Description |
---|
WeakRefFileListener(FileObject file,
FileListener listener) |