public class BreakIteratorBoundaryScanner extends Object implements BoundaryScanner
BoundaryScanner
implementation that uses BreakIterator
to find
boundaries in the text.BreakIterator
Constructor and Description |
---|
BreakIteratorBoundaryScanner(BreakIterator bi) |
Modifier and Type | Method and Description |
---|---|
int |
findEndOffset(StringBuilder buffer,
int start)
Scan forward to find start offset.
|
int |
findStartOffset(StringBuilder buffer,
int start)
Scan backward to find end offset.
|
public BreakIteratorBoundaryScanner(BreakIterator bi)
public int findStartOffset(StringBuilder buffer, int start)
BoundaryScanner
findStartOffset
in interface BoundaryScanner
buffer
- scanned objectstart
- start offset to beginpublic int findEndOffset(StringBuilder buffer, int start)
BoundaryScanner
findEndOffset
in interface BoundaryScanner
buffer
- scanned objectstart
- start offset to beginCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.