|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Created: Sat Oct 27 11:42:07 2001
Method Summary | |
java.util.List |
getPositions(char[] cbuf)
The receiver scans `cbuf' for sentence ending characters and returns their offsets. |
java.util.List |
getPositions(java.lang.String s)
The receiver scans `s' for sentence ending characters and returns their offsets. |
java.util.List |
getPositions(java.lang.StringBuffer buf)
The receiver scans `buf' for sentence ending characters and returns their offsets. |
Method Detail |
public java.util.List getPositions(java.lang.String s)
s
- a String
value
List
of Integer objects.public java.util.List getPositions(java.lang.StringBuffer buf)
buf
- a StringBuffer
value
List
of Integer objects.public java.util.List 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 |