Package org.spongepowered.api.util.file
Class ForwardingFileVisitor<T>
- java.lang.Object
-
- org.spongepowered.api.util.file.ForwardingFileVisitor<T>
-
- All Implemented Interfaces:
FileVisitor<T>
public abstract class ForwardingFileVisitor<T> extends Object implements FileVisitor<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedForwardingFileVisitor(FileVisitor<T> visitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileVisitResultpostVisitDirectory(T dir, IOException exc)FileVisitResultpreVisitDirectory(T dir, BasicFileAttributes attrs)FileVisitResultvisitFile(T file, BasicFileAttributes attrs)FileVisitResultvisitFileFailed(T file, IOException exc)
-
-
-
Constructor Detail
-
ForwardingFileVisitor
protected ForwardingFileVisitor(FileVisitor<T> visitor)
-
-
Method Detail
-
preVisitDirectory
public FileVisitResult preVisitDirectory(T dir, BasicFileAttributes attrs) throws IOException
- Specified by:
preVisitDirectoryin interfaceFileVisitor<T>- Throws:
IOException
-
visitFile
public FileVisitResult visitFile(T file, BasicFileAttributes attrs) throws IOException
- Specified by:
visitFilein interfaceFileVisitor<T>- Throws:
IOException
-
visitFileFailed
public FileVisitResult visitFileFailed(T file, IOException exc) throws IOException
- Specified by:
visitFileFailedin interfaceFileVisitor<T>- Throws:
IOException
-
postVisitDirectory
public FileVisitResult postVisitDirectory(T dir, IOException exc) throws IOException
- Specified by:
postVisitDirectoryin interfaceFileVisitor<T>- Throws:
IOException
-
-