Class 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 Detail

      • InterruptableParsingExample

        public InterruptableParsingExample()
    • Method Detail

      • findInFile

        public boolean findInFile​(String query,
                                  Path path)