01: package uk.org.ponder.stringutil;
02:
03: /** An interface used by a parser to report "words" it discovers.
04: */
05: // used to be implementor in jdiff.RapidWordParser, but replaced by WordBreaker infrastructure.
06: interface WordParseCallback {
07: /** A callback reporting that a word has been seen in the input data.
08: * @param characters An array containing the word data.
09: * @param start The index at which the word data begins in the array.
10: * @param length The length of the word data.
11: */
12: void reportWord(char[] characters, int start, int length);
13: }
|