Package org.asciidoctor.jruby
Class AsciiDocDirectoryWalker
- java.lang.Object
-
- org.asciidoctor.jruby.AbstractDirectoryWalker
-
- org.asciidoctor.jruby.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.
-
-
Constructor Summary
Constructors Constructor Description AsciiDocDirectoryWalker(java.lang.String baseDir)
-
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 org.asciidoctor.jruby.AbstractDirectoryWalker
scan
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.asciidoctor.jruby.DirectoryWalker
iterator
-
-
-
-
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 classAbstractDirectoryWalker
- Parameters:
file
- current file.- Returns:
- true if file should be added to returned list, false otherwise.
-
-