|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EndOfSentenceScanner
Scans Strings, StringBuffers, and char[] arrays for the offsets of sentence ending characters.
Implementations of this interface can use regular expressions, hand-coded DFAs, and other scanning techniques to locate end of sentence offsets.
| Method Summary | |
|---|---|
char[] |
getEndOfSentenceCharacters()
Returns an array of character which can indicate the end of a sentence. |
List<Integer> |
getPositions(char[] cbuf)
The receiver scans `cbuf' for sentence ending characters and returns their offsets. |
List<Integer> |
getPositions(String s)
The receiver scans the specified string for sentence ending characters and returns their offsets. |
List<Integer> |
getPositions(StringBuffer buf)
The receiver scans `buf' for sentence ending characters and returns their offsets. |
| Method Detail |
|---|
char[] getEndOfSentenceCharacters()
List<Integer> getPositions(String s)
s - a String value
List of Integer objects.List<Integer> getPositions(StringBuffer buf)
buf - a StringBuffer value
List of Integer objects.List<Integer> getPositions(char[] cbuf)
cbuf - a char[] value
List of Integer objects.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||