2017-05-16 11:00:12 -06:00
|
|
|
// annotations/DemoProcessFiles.java
|
2020-10-07 13:35:40 -06:00
|
|
|
// (c)2020 MindView LLC: see Copyright.txt
|
2017-05-16 11:00:12 -06:00
|
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
|
|
// Visit http://OnJava8.com for more book information.
|
|
|
|
import onjava.ProcessFiles;
|
|
|
|
|
|
|
|
public class DemoProcessFiles {
|
|
|
|
public static void main(String[] args) {
|
|
|
|
new ProcessFiles(file -> System.out.println(file),
|
|
|
|
"java").start(args);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* Output:
|
|
|
|
.\AtUnitExample1.java
|
|
|
|
.\AtUnitExample2.java
|
|
|
|
.\AtUnitExample3.java
|
|
|
|
.\AtUnitExample4.java
|
|
|
|
.\AtUnitExample5.java
|
|
|
|
.\AUComposition.java
|
|
|
|
.\AUExternalTest.java
|
|
|
|
.\database\Constraints.java
|
|
|
|
.\database\DBTable.java
|
|
|
|
.\database\Member.java
|
|
|
|
.\database\SQLInteger.java
|
|
|
|
.\database\SQLString.java
|
|
|
|
.\database\TableCreator.java
|
|
|
|
.\database\Uniqueness.java
|
|
|
|
.\DemoProcessFiles.java
|
|
|
|
.\HashSetTest.java
|
|
|
|
.\ifx\ExtractInterface.java
|
|
|
|
.\ifx\IfaceExtractorProcessor.java
|
|
|
|
.\ifx\Multiplier.java
|
|
|
|
.\PasswordUtils.java
|
|
|
|
.\simplest\Simple.java
|
|
|
|
.\simplest\SimpleProcessor.java
|
|
|
|
.\simplest\SimpleTest.java
|
|
|
|
.\SimulatingNull.java
|
|
|
|
.\StackL.java
|
|
|
|
.\StackLStringTst.java
|
|
|
|
.\Testable.java
|
|
|
|
.\UseCase.java
|
|
|
|
.\UseCaseTracker.java
|
|
|
|
*/
|