Package org.apache.tika.example
Class GrabPhoneNumbersExample
- java.lang.Object
-
- org.apache.tika.example.GrabPhoneNumbersExample
-
public class GrabPhoneNumbersExample extends Object
Class to demonstrate how to use thePhoneExtractingContentHandlerto get a list of all of the phone numbers from every file in a directory.You can run this main method by running
mvn exec:java -Dexec.mainClass="org.apache.tika.example.GrabPhoneNumbersExample" -Dexec.args="/path/to/directory"from the tika-example directory.
-
-
Constructor Summary
Constructors Constructor Description GrabPhoneNumbersExample()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static voidprocess(Path path)static voidprocessFolder(Path folder)
-