Skip to content

Tag Archives: Java-BreakIterator

The first() method of java.text.BreakIterator class is used to get the index of the first boundary.it always return the start index of first boundary.it provides… Read More
The setText() method of java.text.BreakIterator class is used to set the new text into the BreakIterator. Syntax: public void setText(String newText) Paramter: This method takes… Read More
The following() method of java.text.BreakIterator class is used to return the index of the first boundary which is present after the specified offset in the… Read More
The next() method of java.text.BreakIterator class is used to get the index of the next boundary ahead of the current boundary(boundary retrieved by calling current()… Read More
The setText(CharacterIterator) method of java.text.BreakIterator class is used to set the new text into the BreakIterator using CharacterIterator object. Syntax: public abstract void setText(CharacterIterator newText)… Read More
The preceding() method of java.text.BreakIterator class is used to get the index of the character of the last boundary preceding the boundary of specified character… Read More
The last() method of java.text.BreakIterator class is used to get the index of the last boundary. It always return the offset of the last character… Read More
The getAvailableLocales() method of java.text.BreakIterator class is used to provide an array of all locales. Syntax: public static Locale[] getAvailableLocales() Parameter: This method does not… Read More
The getText() method of java.text.BreakIterator class is used to get the text previously set by the setText() method in breakiterator. Syntax: public abstract CharacterIterator getText()… Read More
The isBoundary() method of java.text.BreakIterator class is used to check if the passed offset is boundary or not. Syntax: public boolean isBoundary(int offset) Parameter: This… Read More
The previous() method of java.text.BreakIterator class is used to get the index of the previous boundary behind the current boundary(boundary retrieved by calling current() method).… Read More
The current() method of java.text.BreakIterator class is used to get the index of recent text boundary in the line of words. It provides the offset… Read More
The next() method of java.text.BreakIterator class is used to get the index of the nth next boundary from the current boundary(boundary retrieved by calling current()… Read More