Class AMultithrowFileVisitor
- java.lang.Object
-
- java.nio.file.SimpleFileVisitor<Path>
-
- com.g2forge.alexandria.java.io.file.AMultithrowFileVisitor
-
- All Implemented Interfaces:
IFileTreeWalker
,IWalkingFileVisitor
,FileVisitor<Path>
- Direct Known Subclasses:
CompareWalker.Visitor
,CopyWalker.Visitor
,DeleteWalker.Visitor
public abstract class AMultithrowFileVisitor extends SimpleFileVisitor<Path> implements IWalkingFileVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<Throwable>
throwables
-
Constructor Summary
Constructors Constructor Description AMultithrowFileVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
add(Throwable throwable)
protected FileVisitResult
exception(Path value, IOException exception)
protected String
getMessageFile(Path path)
protected String
getMessageThrow(Path start)
protected Collection<Throwable>
getThrowables()
FileVisitResult
visitFileFailed(Path value, IOException exception)
Path
walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth)
-
Methods inherited from class java.nio.file.SimpleFileVisitor
postVisitDirectory, preVisitDirectory, visitFile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.nio.file.FileVisitor
postVisitDirectory, preVisitDirectory, visitFile
-
Methods inherited from interface com.g2forge.alexandria.java.io.file.IFileTreeWalker
walkFileTree
-
-
-
-
Field Detail
-
throwables
protected final Collection<Throwable> throwables
-
-
Method Detail
-
add
protected void add(Throwable throwable)
-
exception
protected FileVisitResult exception(Path value, IOException exception)
-
visitFileFailed
public FileVisitResult visitFileFailed(Path value, IOException exception)
- Specified by:
visitFileFailed
in interfaceFileVisitor<Path>
- Overrides:
visitFileFailed
in classSimpleFileVisitor<Path>
-
walkFileTree
public Path walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth)
- Specified by:
walkFileTree
in interfaceIFileTreeWalker
- Specified by:
walkFileTree
in interfaceIWalkingFileVisitor
-
getThrowables
protected Collection<Throwable> getThrowables()
-
-