Module datarush.analytics
Class RegexWordBreakIterator
- java.lang.Object
-
- java.text.BreakIterator
-
- com.pervasive.datarush.analytics.text.RegexWordBreakIterator
-
- All Implemented Interfaces:
Cloneable
public class RegexWordBreakIterator extends BreakIterator
A word break iterator that that allows its default behavior for the Locale to be overridden by supplied regular expression rules.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegexWordBreakIterator.WordPattern
-
Field Summary
-
Fields inherited from class java.text.BreakIterator
DONE
-
-
Constructor Summary
Constructors Constructor Description RegexWordBreakIterator()
Default Constructor for regular expression based word break iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRegex(RegexWordBreakIterator.WordPattern wordPattern)
void
addRegex(String regex)
int
current()
int
first()
int
following(int offset)
CharacterIterator
getText()
int
last()
int
next()
int
next(int n)
int
previous()
void
setText(String text)
void
setText(CharacterIterator text)
-
Methods inherited from class java.text.BreakIterator
clone, getAvailableLocales, getCharacterInstance, getCharacterInstance, getLineInstance, getLineInstance, getSentenceInstance, getSentenceInstance, getWordInstance, getWordInstance, isBoundary, preceding
-
-
-
-
Method Detail
-
current
public int current()
- Specified by:
current
in classBreakIterator
- See Also:
BreakIterator.current()
-
first
public int first()
- Specified by:
first
in classBreakIterator
- See Also:
BreakIterator.first()
-
following
public int following(int offset)
- Specified by:
following
in classBreakIterator
- See Also:
BreakIterator.following(int)
-
getText
public CharacterIterator getText()
- Specified by:
getText
in classBreakIterator
- See Also:
BreakIterator.getText()
-
last
public int last()
- Specified by:
last
in classBreakIterator
- See Also:
BreakIterator.last()
-
next
public int next()
- Specified by:
next
in classBreakIterator
- See Also:
BreakIterator.next()
-
next
public int next(int n)
- Specified by:
next
in classBreakIterator
- See Also:
BreakIterator.next(int)
-
previous
public int previous()
- Specified by:
previous
in classBreakIterator
- See Also:
BreakIterator.previous()
-
setText
public void setText(String text)
- Overrides:
setText
in classBreakIterator
- See Also:
BreakIterator.setText(String)
-
setText
public void setText(CharacterIterator text)
- Specified by:
setText
in classBreakIterator
- See Also:
BreakIterator.setText(java.text.CharacterIterator)
-
addRegex
public void addRegex(String regex)
-
addRegex
public void addRegex(RegexWordBreakIterator.WordPattern wordPattern)
-
-