|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.build.fs.FSWalker
public final class FSWalker
Performs a file hierarchy traversal. An object implementing the interface (@see FSVisitor) may register to the traversal and is called (back) to react on events happening during the traversal (such as entering a directory etc.).
| Field Summary | |
|---|---|
java.io.File |
curr
Current file to be processed. |
| Constructor Summary | |
|---|---|
FSWalker()
|
|
| Method Summary | |
|---|---|
void |
fileHierarchyTraversal(java.lang.String path)
Starts the traversal from a given path. |
boolean |
register(FSVisitor v)
Registers another visitor to the file hierarchy traversal. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.io.File curr
| Constructor Detail |
|---|
public FSWalker()
| Method Detail |
|---|
public void fileHierarchyTraversal(java.lang.String path)
throws java.io.IOException
path - the traversal starts from.
java.io.IOException - I/O exceptionpublic boolean register(FSVisitor v)
v - the visitor to be added.
FSVisitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||