|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FSVisitor
This interface defines events that may occur during a file hierarchy traversal. To get notified about an event during a file hierarchy traversal implement this interface and register to (@see FSWalker).
| Method Summary | |
|---|---|
void |
postEvent()
Invoked when directory is left. |
void |
postTraversal(boolean docClose)
Invoked after the traversal. |
void |
preEvent(java.io.File dir)
Invoked before directory is entered. |
void |
preTraversal(java.lang.String path,
boolean docOpen)
Invoked before traversal starts. |
void |
regfileEvent(java.io.File file)
Invoked when a regular file is visited. |
void |
symlinkEvent(java.io.File link)
Invoked when a symbolic link is visited. |
| Method Detail |
|---|
void postEvent()
throws java.io.IOException
java.io.IOException - I/O exception
void postTraversal(boolean docClose)
throws java.io.IOException
docClose - indicates if the document is to be closed.
java.io.IOException - I/O exception
void preEvent(java.io.File dir)
throws java.io.IOException
dir - name
java.io.IOException - I/O exception
void preTraversal(java.lang.String path,
boolean docOpen)
throws java.io.IOException
path - the traversal starts from.docOpen - indicates if this is also the beginning of the document.
java.io.IOException - I/O exception
void regfileEvent(java.io.File file)
throws java.io.IOException
file - name
java.io.IOException - I/O exceptionvoid symlinkEvent(java.io.File link)
link - to be visited.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||