Class AsciiDocDirectoryWalker

  • All Implemented Interfaces:
    java.lang.Iterable<java.io.File>, DirectoryWalker

    public class AsciiDocDirectoryWalker
    extends AbstractDirectoryWalker
    Directory walker that finds all asciidoc files inside a folder and in all its subfolders. It returns only the files which their extensions are: .asc, .asciidoc, .ad or .adoc.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isAcceptedFile​(java.io.File file)
      Method to implement which is called to decide if file should be filtered or not.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • AsciiDocDirectoryWalker

        public AsciiDocDirectoryWalker​(java.lang.String baseDir)
    • Method Detail

      • isAcceptedFile

        protected boolean isAcceptedFile​(java.io.File file)
        Description copied from class: AbstractDirectoryWalker
        Method to implement which is called to decide if file should be filtered or not.
        Specified by:
        isAcceptedFile in class AbstractDirectoryWalker
        Parameters:
        file - current file.
        Returns:
        true if file should be added to returned list, false otherwise.