BreakIteratorProvider class for the JRE LocaleProviderAdapter.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | BreakIteratorProviderImpl.
Implementation only for calling Grapheme.nextBoundary(). |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private static final int | |
| private static final int | |
| private final LocaleProviderAdapter. | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Set | getAvailableLanguageTags()
Implements sun. Returns a set of available language tags of a LocaleServiceProvider. |
| public Locale[] | Returns: An array of all locales for which this locale service provider can provide localized objects or names.Implements abstract java. Returns an array of all locales for which this locale service provider can provide localized objects or names. |
| private BreakIterator | |
| public BreakIterator | Returns: A break iterator for character breaksthe desired locale locale)Implements abstract java. Returns a new |
| public BreakIterator | Returns: A break iterator for line breaksthe desired locale locale)Implements abstract java. Returns a new |
| public BreakIterator | Returns: A break iterator for sentence breaksthe desired locale locale)Implements abstract java. Returns a new |
| public BreakIterator | Returns: A break iterator for word breaksthe desired locale locale)Implements abstract java. Returns a new |
| public boolean | isSupportedLocale(Locale locale)
Overrides java. Returns |
| langtags | back to summary |
|---|---|
| private final Set<String> langtags | |
| LINE_INDEX | back to summary |
|---|---|
| private static final int LINE_INDEX | |
| SENTENCE_INDEX | back to summary |
|---|---|
| private static final int SENTENCE_INDEX | |
| type | back to summary |
|---|---|
| private final LocaleProviderAdapter. | |
| WORD_INDEX | back to summary |
|---|---|
| private static final int WORD_INDEX | |
| BreakIteratorProviderImpl | back to summary |
|---|---|
| public BreakIteratorProviderImpl(LocaleProviderAdapter. | |
| getAvailableLanguageTags | back to summary |
|---|---|
| public Set Implements sun. Doc from sun. Returns a set of available language tags of a LocaleServiceProvider.
Note that the returned set doesn't contain the language tag for
| |
| getAvailableLocales | back to summary |
|---|---|
| public Locale[] getAvailableLocales() Implements abstract java. Returns an array of all locales for which this locale service provider can provide localized objects or names. | |
| getBreakInstance | back to summary |
|---|---|
| private BreakIterator getBreakInstance(Locale locale, int type, String ruleName, String dictionaryName) | |
| getCharacterInstance | back to summary |
|---|---|
| public BreakIterator getCharacterInstance(Locale locale) Implements abstract java. Returns a new
| |
| getLineInstance | back to summary |
|---|---|
| public BreakIterator getLineInstance(Locale locale) Implements abstract java. Returns a new
| |
| getSentenceInstance | back to summary |
|---|---|
| public BreakIterator getSentenceInstance(Locale locale) Implements abstract java. Returns a new
| |
| getWordInstance | back to summary |
|---|---|
| public BreakIterator getWordInstance(Locale locale) Implements abstract java. Returns a new
| |
| isSupportedLocale | back to summary |
|---|---|
| public boolean isSupportedLocale(Locale locale) Overrides java. Doc from java. Returns The default implementation returns
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv CharacterIterator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public char | charAt(int index)
Implements java. Returns the |
| public int | |
| public CharSequence | subSequence(int start, int end)
Implements java. Returns a |
| src | back to summary |
|---|---|
| pack-priv CharacterIterator src | |
| CharacterIteratorCharSequence | back to summary |
|---|---|
| pack-priv CharacterIteratorCharSequence(CharacterIterator ci) | |
| charAt | back to summary |
|---|---|
| public char charAt(int index) Implements java. Doc from java. Returns the If the
| |
| length | back to summary |
|---|---|
| public int length() Implements java. Doc from java. Returns the length of this character sequence. The length is the number
of 16-bit
| |
| subSequence | back to summary |
|---|---|
| public CharSequence subSequence(int start, int end) Implements java. Doc from java. Returns a
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv List | |
| pack-priv int | |
| pack-priv CharacterIterator | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | current()
Implements abstract java. Returns character index of the text boundary that was most recently returned by next(), next(int), previous(), first(), last(), following(int) or preceding(int). |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | following(int offset)
Implements abstract java. Returns the first boundary following the specified character offset. |
| public CharacterIterator | |
| public int | |
| public boolean | isBoundary(int offset)
Overrides java. Returns true if the specified character offset is a text boundary. |
| public int | |
| public int | next(int n)
Implements abstract java. Returns the nth boundary from the current boundary. |
| public int | next()
Implements abstract java. Returns the boundary following the current boundary. |
| public int | previous()
Implements abstract java. Returns the boundary preceding the current boundary. |
| public void | setText(CharacterIterator newText)
Implements abstract java. Set a new text for scanning. |
| boundaries | back to summary |
|---|---|
| pack-priv List<Integer> boundaries | |
| boundaryIndex | back to summary |
|---|---|
| pack-priv int boundaryIndex | |
| ci | back to summary |
|---|---|
| pack-priv CharacterIterator ci | |
| offset | back to summary |
|---|---|
| pack-priv int offset | |
| GraphemeBreakIterator | back to summary |
|---|---|
| pack-priv GraphemeBreakIterator() | |
| current | back to summary |
|---|---|
| public int current() Implements abstract java. Doc from java. Returns character index of the text boundary that was most
recently returned by next(), next(int), previous(), first(), last(),
following(int) or preceding(int). If any of these methods returns
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| first | back to summary |
|---|---|
| public int first() Implements abstract java. Doc from java. Returns the first boundary. The iterator's current position is set to the first text boundary.
| |
| following | back to summary |
|---|---|
| public int following(int offset) Implements abstract java. Doc from java. Returns the first boundary following the specified character offset. If the
specified offset is equal to the last text boundary, it returns
| |
| getText | back to summary |
|---|---|
| public CharacterIterator getText() Implements abstract java. Doc from java. Get the text being scanned
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isBoundary | back to summary |
|---|---|
| public boolean isBoundary(int offset) Overrides java. Doc from java. Returns true if the specified character offset is a text boundary.
| |
| last | back to summary |
|---|---|
| public int last() Implements abstract java. Doc from java. Returns the last boundary. The iterator's current position is set to the last text boundary.
| |
| next | back to summary |
|---|---|
| public int next(int n) Implements abstract java. Doc from java. Returns the nth boundary from the current boundary. If either
the first or last text boundary has been reached, it returns
| |
| next | back to summary |
|---|---|
| public int next() Implements abstract java. Doc from java. Returns the boundary following the current boundary. If the current boundary
is the last text boundary, it returns
| |
| previous | back to summary |
|---|---|
| public int previous() Implements abstract java. Doc from java. Returns the boundary preceding the current boundary. If the current boundary
is the first text boundary, it returns
| |
| setText | back to summary |
|---|---|
| public void setText(CharacterIterator newText) Implements abstract java. Doc from java. Set a new text for scanning. The current scan position is reset to first().
| |