Method Summary |
|
public Object | clone() Create copy of this iterator, all status including current position is
kept. |
abstract public int | current() Return this iterator's current position. |
abstract public int | first() Set this iterator's current position to the first boundary, and return
this position. |
abstract public int | following(int offset) Set the position of the first boundary following the given offset, and
return this position. |
public static Locale[] | getAvailableLocales() Return all supported locales. |
public static BreakIterator | getCharacterInstance() Return a new instance of BreakIterator used to iterate characters using
default locale. |
public static BreakIterator | getCharacterInstance(Locale where) Return a new instance of BreakIterator used to iterate characters using
given locale. |
protected static int | getInt(byte[] buf, int offset) Get an int value from the given byte array, start from given offset. |
public static BreakIterator | getLineInstance() Return a new instance of BreakIterator used to iterate line-breaks using
default locale. |
public static BreakIterator | getLineInstance(Locale where) Return a new instance of BreakIterator used to iterate line-breaks using
given locale. |
protected static long | getLong(byte[] buf, int offset) Get a long value from the given byte array, start from given offset. |
public static BreakIterator | getSentenceInstance() Return a new instance of BreakIterator used to iterate sentence-breaks
using default locale. |
public static BreakIterator | getSentenceInstance(Locale where) Return a new instance of BreakIterator used to iterate sentence-breaks
using given locale. |
protected static short | getShort(byte[] buf, int offset) Get a short value from the given byte array, start from given offset. |
abstract public CharacterIterator | getText() Return a CharacterIterator which represents the text being
analyzed. |
public static BreakIterator | getWordInstance() Return a new instance of BreakIterator used to iterate word-breaks using
default locale. |
public static BreakIterator | getWordInstance(Locale where) Return a new instance of BreakIterator used to iterate word-breaks using
given locale. |
public boolean | isBoundary(int offset) Return true if the given offset is a boundary position. |
abstract public int | last() Set this iterator's current position to the last boundary, and return
this position. |
abstract public int | next() Set this iterator's current position to the next boundary after current
position, and return this position. |
abstract public int | next(int n) Set this iterator's current position to the next boundary after the given
position, and return this position. |
public int | preceding(int offset) Return the position of last boundary precede the given offset, and set
current position to returned value, or DONE if the given
offset specifies the starting position. |
abstract public int | previous() Set this iterator's current position to the previous boundary before
current position, and return this position. |
public void | setText(String newText) Set the new text string to be analyzed, the current position will be
reset to beginning of this new string, and the old string will lost. |
abstract public void | setText(CharacterIterator newText) Set new text to be analyzed by given CharacterIterator . |