Class GrabPhoneNumbersExample

  • public class GrabPhoneNumbersExample
    extends Object
    Class to demonstrate how to use the PhoneExtractingContentHandler to 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 Detail

      • GrabPhoneNumbersExample

        public GrabPhoneNumbersExample()
    • Method Detail

      • main

        public static void main​(String[] args)
      • processFolder

        public static void processFolder​(Path folder)