|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectbr.com.objectos.fs.SimplePathNameVisitor<R,P>
R - the type of the result of the visit operationP - the type of the additional valuepublic class SimplePathNameVisitor<R,P>
A simple visitor of PathName instances.
| Constructor Summary | |
|---|---|
SimplePathNameVisitor()
|
|
| Method Summary | |
|---|---|
protected R |
defaultAction(PathName pathName,
P p)
The default action for visit methods. |
R |
visitDirectory(Directory directory,
P p)
Visits a directory. |
R |
visitNotFound(ResolvedPath notFound,
P p)
Visits a nonexistent file. |
R |
visitRegularFile(RegularFile file,
P p)
Visits a regular file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimplePathNameVisitor()
| Method Detail |
|---|
public R visitDirectory(Directory directory,
P p)
throws IOException
visitDirectory in interface PathNameVisitor<R,P>directory - the directory instancep - an additional value
IOException - if an I/O error occurs
public R visitNotFound(ResolvedPath notFound,
P p)
throws IOException
visitNotFound in interface PathNameVisitor<R,P>notFound - the nonexistent filep - an additional value
IOException - if an I/O error occurs
public R visitRegularFile(RegularFile file,
P p)
throws IOException
visitRegularFile in interface PathNameVisitor<R,P>file - the regular filep - an additional value
IOException - if an I/O error occurs
protected R defaultAction(PathName pathName,
P p)
throws IOException
pathName - the path name to processp - an additional value
null unless overridden
IOException - may be thrown if overridden
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||