org.asciidoctor
Class AsciiDocDirectoryWalker

java.lang.Object
  extended by org.asciidoctor.DirectoryWalker
      extended by org.asciidoctor.AsciiDocDirectoryWalker

public class AsciiDocDirectoryWalker
extends 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.

Author:
lordofthejars

Constructor Summary
AsciiDocDirectoryWalker(String baseDir)
           
 
Method Summary
protected  boolean isAcceptedFile(File file)
          Method to implement which is called to decide if file should be filtered or not.
 
Methods inherited from class org.asciidoctor.DirectoryWalker
scan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsciiDocDirectoryWalker

public AsciiDocDirectoryWalker(String baseDir)
Method Detail

isAcceptedFile

protected boolean isAcceptedFile(File file)
Description copied from class: DirectoryWalker
Method to implement which is called to decide if file should be filtered or not.

Specified by:
isAcceptedFile in class DirectoryWalker
Parameters:
file - current file.
Returns:
true if file should be added to returned list, false otherwise.


Copyright © 2013. All Rights Reserved.