Package org.asciidoctor.jruby
Class AsciiDocDirectoryWalker
java.lang.Object
org.asciidoctor.jruby.AbstractDirectoryWalker
org.asciidoctor.jruby.AsciiDocDirectoryWalker
- All Implemented Interfaces:
Iterable<File>,DirectoryWalker
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisAcceptedFile(File file) Method to implement which is called to decide if file should be filtered or not.Methods inherited from class org.asciidoctor.jruby.AbstractDirectoryWalker
scanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.asciidoctor.jruby.DirectoryWalker
iteratorMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AsciiDocDirectoryWalker
-
-
Method Details
-
isAcceptedFile
Description copied from class:AbstractDirectoryWalkerMethod to implement which is called to decide if file should be filtered or not.- Specified by:
isAcceptedFilein classAbstractDirectoryWalker- Parameters:
file- current file.- Returns:
- true if file should be added to returned list, false otherwise.
-