Class InterruptableParsingExample

java.lang.Object
org.apache.tika.example.InterruptableParsingExample

public class InterruptableParsingExample extends Object
This example demonstrates how to interrupt document parsing if some condition is met.

InterruptableParsingExample.InterruptingContentHandler throws special exception as soon as find query string in parsed file.

See also http://stackoverflow.com/questions/31939851

  • Constructor Details

    • InterruptableParsingExample

      public InterruptableParsingExample()
  • Method Details

    • findInFile

      public boolean findInFile(String query, Path path)