public abstract class FilteredBreakIteratorBuilder extends Object
This class is not intended for public subclassing.
Modifier | Constructor | Description |
---|---|---|
protected |
FilteredBreakIteratorBuilder() |
Deprecated.
internal to ICU
|
Modifier and Type | Method | Description |
---|---|---|
static FilteredBreakIteratorBuilder |
getEmptyInstance() |
Construct an empty FilteredBreakIteratorBuilder.
|
static FilteredBreakIteratorBuilder |
getInstance(ULocale where) |
Construct a FilteredBreakIteratorBuilder based on sentence break exception rules in a locale.
|
static FilteredBreakIteratorBuilder |
getInstance(Locale where) |
Construct a FilteredBreakIteratorBuilder based on sentence break exception rules in a locale.
|
abstract boolean |
suppressBreakAfter(CharSequence str) |
Suppress a certain string from being the end of a segment.
|
abstract boolean |
unsuppressBreakAfter(CharSequence str) |
Stop suppressing a certain string from being the end of the segment.
|
abstract BreakIterator |
wrapIteratorWithFilter(BreakIterator wrappedBreakIterator) |
Wrap (adopt) an existing break iterator in a new filtered instance.
|
@Deprecated protected FilteredBreakIteratorBuilder()
public static final FilteredBreakIteratorBuilder getInstance(Locale where)
where
- the locale.public static final FilteredBreakIteratorBuilder getInstance(ULocale where)
where
- the locale.public static final FilteredBreakIteratorBuilder getEmptyInstance()
public abstract boolean suppressBreakAfter(CharSequence str)
str
- the string to suppress, such as "Mr."public abstract boolean unsuppressBreakAfter(CharSequence str)
str
- the str the string to unsuppress, such as "Mr."public abstract BreakIterator wrapIteratorWithFilter(BreakIterator wrappedBreakIterator)
wrappedBreakIterator
- the break iterator to wrapCopyright ? 2016 Unicode, Inc. and others.