Skip to content

Tag Archives: Java-text package

The setText() method of java.text.BreakIterator class is used to set the new text into the BreakIterator.Syntax:   public void setText(String newText) Parameter: This method takes text… 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 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 setText(CharacterIterator) method of java.text.BreakIterator class is used to set the new text into the BreakIterator using CharacterIterator object. Syntax: Attention reader! Don’t stop learning now.… 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: Attention reader! Don’t stop learning now. Get hold of… 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() Parameter:… Read More
The isBoundary() method of java.text.BreakIterator class is used to check if the passed offset is boundary or not. Syntax: Attention reader! Don’t stop learning now.… 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 applyPattern() method of java.text.ChoiceFormat class is used to set the new pattern text for current ChoiceFormat by overriding the current limit and format. This… 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
The getRunLevel() method of java.text.Bidi class used to provide the level for the nth run of this line of text if there is only one… Read More
The getLength() method of java.text.Bidi class is used to get the length of the text in this Bidi instance. Syntax: Attention reader! Don’t stop learning… Read More