Java java.text BreakIterator fields, constructors, methods, implement or subclass

Example usage for Java java.text BreakIterator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.text BreakIterator.

The text is from its open source code.

Field

intDONE
DONE is returned by previous(), next(), next(int), preceding(int) and following(int) when either the first or last text boundary has been reached.

Method

intfirst()
Returns the first boundary.
intfollowing(int offset)
Returns the first boundary following the specified character offset.
BreakIteratorgetCharacterInstance(Locale locale)
Returns a new BreakIterator instance for character breaks for the given locale.
BreakIteratorgetCharacterInstance()
Returns a new BreakIterator instance for character breaks for the Locale#getDefault() default locale .
BreakIteratorgetLineInstance(Locale locale)
Returns a new BreakIterator instance for line breaks for the given locale.
BreakIteratorgetLineInstance()
Returns a new BreakIterator instance for line breaks for the Locale#getDefault() default locale .
BreakIteratorgetSentenceInstance(Locale locale)
Returns a new BreakIterator instance for sentence breaks for the given locale.
BreakIteratorgetSentenceInstance()
Returns a new BreakIterator instance for sentence breaks for the Locale#getDefault() default locale .
BreakIteratorgetWordInstance(Locale locale)
Returns a new BreakIterator instance for word breaks for the given locale.
BreakIteratorgetWordInstance()
Returns a new BreakIterator instance for word breaks for the Locale#getDefault() default locale .
intlast()
Returns the last boundary.
intnext()
Returns the boundary following the current boundary.
intpreceding(int offset)
Returns the last boundary preceding the specified character offset.
voidsetText(String newText)
Set a new text string to be scanned.
voidsetText(CharacterIterator newText)
Set a new text for scanning.