Class SimplePathVisitor

  • All Implemented Interfaces:
    java.nio.file.FileVisitor<java.nio.file.Path>, PathVisitor
    Direct Known Subclasses:
    CountingPathVisitor, NoopPathVisitor

    public abstract class SimplePathVisitor
    extends java.nio.file.SimpleFileVisitor<java.nio.file.Path>
    implements PathVisitor
    A SimpleFileVisitor typed to a Path.
    Since:
    2.7
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private IOBiFunction<java.nio.file.Path,​java.io.IOException,​java.nio.file.FileVisitResult> visitFileFailedFunction  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SimplePathVisitor()
      Constructs a new instance.
      protected SimplePathVisitor​(IOBiFunction<java.nio.file.Path,​java.io.IOException,​java.nio.file.FileVisitResult> visitFileFailed)
      Constructs a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.file.FileVisitResult visitFileFailed​(java.nio.file.Path file, java.io.IOException exc)  
      • 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
    • Field Detail

      • visitFileFailedFunction

        private final IOBiFunction<java.nio.file.Path,​java.io.IOException,​java.nio.file.FileVisitResult> visitFileFailedFunction
    • Constructor Detail

      • SimplePathVisitor

        protected SimplePathVisitor()
        Constructs a new instance.
      • SimplePathVisitor

        protected SimplePathVisitor​(IOBiFunction<java.nio.file.Path,​java.io.IOException,​java.nio.file.FileVisitResult> visitFileFailed)
        Constructs a new instance.
        Parameters:
        visitFileFailed - Called on visitFileFailed(Path, IOException).
    • Method Detail

      • visitFileFailed

        public java.nio.file.FileVisitResult visitFileFailed​(java.nio.file.Path file,
                                                             java.io.IOException exc)
                                                      throws java.io.IOException
        Specified by:
        visitFileFailed in interface java.nio.file.FileVisitor<java.nio.file.Path>
        Overrides:
        visitFileFailed in class java.nio.file.SimpleFileVisitor<java.nio.file.Path>
        Throws:
        java.io.IOException