net.sourceforge.sstringsearch.search
Interface SearchingHitListener

All Superinterfaces:
Serializable

public interface SearchingHitListener
extends Serializable

Project: sstringsearch
File: SearchingHitListener.java
Class: SearchingHitListener
Created: 13. okt.. 2006

Description:

Classes implementing this interface can be notified when StringSearch finds a hit. Implementations of this class should be fully serializable if one wants to serialize the finite state automata graph.

Version:
$Revision: 1.2 $
Author:
Kristian Andersen Email

Method Summary
 boolean foundAt(long startIndex, long endIndex, String string, Object... callbackArguments)
          Called by StringSearch upon a hit.
 

Method Detail

foundAt

boolean foundAt(long startIndex,
                long endIndex,
                String string,
                Object... callbackArguments)
Called by StringSearch upon a hit.

Parameters:
startIndex - The startindex of the hit.
endIndex - The endindex of the hit
string - The string that was found.
callbackArguments - Callback arguments.
Returns:
true if the search should continue


Copyright 2005-2009 Kristian Andersen. All Rights Reserved.