1 // Base class for default BreakIterators.
3 /* Copyright (C) 1999 Free Software Foundation
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
13 import java.text.BreakIterator;
14 import java.text.CharacterIterator;
17 * @author Tom Tromey <tromey@cygnus.com>
18 * @date March 22, 1999
21 public abstract class BaseBreakIterator extends BreakIterator
25 return iter.getIndex();
31 return iter.getBeginIndex();
34 public int following (int pos)
36 int save = iter.getIndex();
43 public CharacterIterator getText ()
51 return iter.getEndIndex();
54 public int next (int n)
56 int r = iter.getIndex ();
59 while (n > 0 && r != DONE)
67 while (n < 0 && r != DONE)
76 public void setText (CharacterIterator newText)
81 protected CharacterIterator iter;