Package org.rabinfingerprint.scanner.StringFinder

Examples of org.rabinfingerprint.scanner.StringFinder.StringMatchVisitor


    final String curDir = System.getProperty("user.dir");
    final String filePattern = ".*\\.java";
    final String targetString = "asdf fdsa asdf";

    System.out.println(String.format("Searching for \"%s\"", targetString));
    find(curDir, filePattern, targetString, new StringMatchVisitor() {
      public void found(final StringMatch match) {
        System.out.println(String.format("%s line %d (%s)", match.getFile().getName(), match.getLineOffset(), match.getFile().getAbsolutePath()));
      }
    });
  }
View Full Code Here

TOP

Related Classes of org.rabinfingerprint.scanner.StringFinder.StringMatchVisitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.