Class DirectoryBasedJarFileResolver.GlobResolver

  • All Implemented Interfaces:
    java.nio.file.FileVisitor<java.nio.file.Path>
    Enclosing class:
    DirectoryBasedJarFileResolver

    private static class DirectoryBasedJarFileResolver.GlobResolver
    extends java.nio.file.SimpleFileVisitor<java.nio.file.Path>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean failed  
      private java.nio.file.PathMatcher matcher  
      private java.util.Set<java.nio.file.Path> paths  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GlobResolver()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void match​(java.nio.file.Path path)  
      java.nio.file.FileVisitResult visitFile​(java.nio.file.Path file, java.nio.file.attribute.BasicFileAttributes attrs)  
      java.nio.file.FileVisitResult visitFileFailed​(java.nio.file.Path file, java.io.IOException e)  
      • Methods inherited from class java.nio.file.SimpleFileVisitor

        postVisitDirectory, preVisitDirectory
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • matcher

        private final java.nio.file.PathMatcher matcher
      • paths

        private final java.util.Set<java.nio.file.Path> paths
      • failed

        private boolean failed
    • Constructor Detail

      • GlobResolver

        private GlobResolver()
    • Method Detail

      • match

        private void match​(java.nio.file.Path path)
      • visitFile

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

        public java.nio.file.FileVisitResult visitFileFailed​(java.nio.file.Path file,
                                                             java.io.IOException e)
                                                      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