br.com.objectos.fs
Interface PathNameVisitor<R,P>

Type Parameters:
R - the type of the result of the visit operation
P - the type of the additional value
All Known Implementing Classes:
SimplePathNameVisitor

public interface PathNameVisitor<R,P>

A visitor of PathName instances.

Since:
2

Method Summary
 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.
 

Method Detail

visitDirectory

R visitDirectory(Directory directory,
                 P p)
                 throws IOException
Visits a directory.

Parameters:
directory - the directory instance
p - an additional value
Returns:
the result of the visit operation
Throws:
IOException - if an I/O error occurs

visitNotFound

R visitNotFound(ResolvedPath notFound,
                P p)
                throws IOException
Visits a nonexistent file.

Parameters:
notFound - the nonexistent file
p - an additional value
Returns:
the result of the visit operation
Throws:
IOException - if an I/O error occurs

visitRegularFile

R visitRegularFile(RegularFile file,
                   P p)
                   throws IOException
Visits a regular file.

Parameters:
file - the regular file
p - an additional value
Returns:
the result of the visit operation
Throws:
IOException - if an I/O error occurs


Copyright © 2021 Objectos Software LTDA. All rights reserved.