public class RootDirectory extends Directory
| Modifier and Type | Method and Description |
|---|---|
void |
addWatchedDirectory(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pDirectoryKey)
Adds the directory-key specified to this directory instance.
|
boolean |
hasKeys() |
boolean |
isRoot() |
Directory |
rebase(Directory pBaseDirectory) |
boolean |
remove(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pDirectoryKey)
Removes the directory-key specfied from this directory instance.
|
Directory |
toRootDirectory() |
cancelKey, forceInform, getPath, getResource, informCreatedOrInitial, informDiscard, informIfChanged, informIfChanged, isDirectParentOf, removeWatchedDirectorypublic void addWatchedDirectory(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pDirectoryKey)
Adds the directory-key specified to this directory instance. When a change is detected, a
DispatchKey will be generated for every directory-key/relative-path combination.
This DispatchKey instance will then be delivered (along with the readable file path)
to the PathChangeListener objects which should be informed.
Note: The key object should be immutable, String or an Enum
objects are good condidates for being directory-keys.
addWatchedDirectory in class DirectorypDirectoryKey - Directory key, must not be nullpublic boolean remove(ch.sourcepond.io.fileobserver.spi.WatchedDirectory pDirectoryKey)
pDirectoryKey - Directory-key to be removed, must be not nulltrue if this directory does not contain directory-keys anymore, false otherwisepublic Directory toRootDirectory()
toRootDirectory in class DirectoryCopyright © 2017 SourcePond. All rights reserved.