public abstract class CharArrayIterator extends Object implements CharacterIterator
BreakIterator
Modifier and Type | Field and Description |
---|---|
static boolean |
HAS_BUGGY_BREAKITERATORS
True if this JRE has a buggy BreakIterator implementation
|
DONE
Constructor and Description |
---|
CharArrayIterator() |
Modifier and Type | Method and Description |
---|---|
CharArrayIterator |
clone() |
char |
current() |
char |
first() |
int |
getBeginIndex() |
int |
getEndIndex() |
int |
getIndex() |
int |
getLength() |
int |
getStart() |
char[] |
getText() |
protected abstract char |
jreBugWorkaround(char ch) |
char |
last() |
static CharArrayIterator |
newSentenceInstance()
Create a new CharArrayIterator that works around JRE bugs
in a manner suitable for
BreakIterator.getSentenceInstance() |
static CharArrayIterator |
newWordInstance()
Create a new CharArrayIterator that works around JRE bugs
in a manner suitable for
BreakIterator.getWordInstance() |
char |
next() |
char |
previous() |
char |
setIndex(int position) |
void |
setText(char[] array,
int start,
int length)
Set a new region of text to be examined by this iterator
|
public static final boolean HAS_BUGGY_BREAKITERATORS
public char[] getText()
public int getStart()
public int getLength()
public void setText(char[] array, int start, int length)
array
- text buffer to examinestart
- offset into bufferlength
- maximum length to examinepublic char current()
current
in interface CharacterIterator
protected abstract char jreBugWorkaround(char ch)
public char first()
first
in interface CharacterIterator
public int getBeginIndex()
getBeginIndex
in interface CharacterIterator
public int getEndIndex()
getEndIndex
in interface CharacterIterator
public int getIndex()
getIndex
in interface CharacterIterator
public char last()
last
in interface CharacterIterator
public char next()
next
in interface CharacterIterator
public char previous()
previous
in interface CharacterIterator
public char setIndex(int position)
setIndex
in interface CharacterIterator
public CharArrayIterator clone()
clone
in interface CharacterIterator
clone
in class Object
public static CharArrayIterator newSentenceInstance()
BreakIterator.getSentenceInstance()
public static CharArrayIterator newWordInstance()
BreakIterator.getWordInstance()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.