API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. BreakIterator View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      BreakIterator
Implements
 Cloneable
Subclasses
Description
publicabstract abstract class BreakIterator
  The BreakIterator class implements methods for finding the location of boundaries in text.
See also:    CharacterIterator
Constructors
protected BreakIterator ()
  Constructor.
Methods
Hide/Show inherited methods
public Object clone ()
  Create a copy of this iterator
publicabstract int current ()
  Returns character index of the text boundary that was most recently returned by next(), next(int), previous(), first(), last(), following(int) or preceding(int).
publicabstract int first ()
  Returns the first boundary.
publicabstract int following (int offset)
  Returns the first boundary following the specified character offset.
publicstaticsynchronized Locale getAvailableLocales ()
  Returns an array of all locales for which the get*Instance methods of this class can return localized instances.
publicstatic BreakIterator getCharacterInstance ()
  Returns a new BreakIterator instance for character breaks for the default locale.
publicstatic BreakIterator getCharacterInstance (Locale locale)
  Returns a new BreakIterator instance for character breaks for the given locale.
pack-privatestatic int getInt (byte[] buf, int offset)
publicstatic BreakIterator getLineInstance ()
  Returns a new BreakIterator instance for line breaks for the default locale.
publicstatic BreakIterator getLineInstance (Locale locale)
  Returns a new BreakIterator instance for line breaks for the given locale.
pack-privatestatic long getLong (byte[] buf, int offset)
publicstatic BreakIterator getSentenceInstance ()
  Returns a new BreakIterator instance for sentence breaks for the default locale.
publicstatic BreakIterator getSentenceInstance (Locale locale)
  Returns a new BreakIterator instance for sentence breaks for the given locale.
pack-privatestatic short getShort (byte[] buf, int offset)
publicabstract CharacterIterator getText ()
  Get the text being scanned
publicstatic BreakIterator getWordInstance ()
  Returns a new BreakIterator instance for word breaks for the default locale.
publicstatic BreakIterator getWordInstance (Locale locale)
  Returns a new BreakIterator instance for word breaks for the given locale.
public boolean isBoundary (int offset)
  Returns true if the specified character offset is a text boundary.
publicabstract int last ()
  Returns the last boundary.
publicabstract int next ()
  Returns the boundary following the current boundary.
publicabstract int next (int n)
  Returns the nth boundary from the current boundary.
public int preceding (int offset)
  Returns the last boundary preceding the specified character offset.
publicabstract int previous ()
  Returns the boundary preceding the current boundary.
publicabstract void setText (CharacterIterator newText)
  Set a new text for scanning.
public void setText (String newText)
  Set a new text string to be scanned.
Fields
Hide/Show inherited fields
publicfinalstatic int DONE = "-1"
DONE is returned by previous(), next(), next(int), preceding(int) and following(int) when either the first or last text boundary has been reached.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar