Class CharArrayIterator
- java.lang.Object
-
- org.apache.lucene.analysis.icu.segmentation.CharArrayIterator
-
- All Implemented Interfaces:
java.lang.Cloneable,java.text.CharacterIterator
final class CharArrayIterator extends java.lang.Object implements java.text.CharacterIteratorWraps a char[] as CharacterIterator for processing with a BreakIterator
-
-
Constructor Summary
Constructors Constructor Description CharArrayIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CharArrayIteratorclone()charcurrent()charfirst()intgetBeginIndex()intgetEndIndex()intgetIndex()intgetLength()intgetStart()char[]getText()charlast()charnext()charprevious()charsetIndex(int position)(package private) voidsetText(char[] array, int start, int length)Set a new region of text to be examined by this iterator
-
-
-
Method Detail
-
getText
public char[] getText()
-
getStart
public int getStart()
-
getLength
public int getLength()
-
setText
void setText(char[] array, int start, int length)Set a new region of text to be examined by this iterator- Parameters:
array- text buffer to examinestart- offset into bufferlength- maximum length to examine
-
current
public char current()
- Specified by:
currentin interfacejava.text.CharacterIterator
-
first
public char first()
- Specified by:
firstin interfacejava.text.CharacterIterator
-
getBeginIndex
public int getBeginIndex()
- Specified by:
getBeginIndexin interfacejava.text.CharacterIterator
-
getEndIndex
public int getEndIndex()
- Specified by:
getEndIndexin interfacejava.text.CharacterIterator
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfacejava.text.CharacterIterator
-
last
public char last()
- Specified by:
lastin interfacejava.text.CharacterIterator
-
next
public char next()
- Specified by:
nextin interfacejava.text.CharacterIterator
-
previous
public char previous()
- Specified by:
previousin interfacejava.text.CharacterIterator
-
setIndex
public char setIndex(int position)
- Specified by:
setIndexin interfacejava.text.CharacterIterator
-
clone
public CharArrayIterator clone()
- Specified by:
clonein interfacejava.text.CharacterIterator- Overrides:
clonein classjava.lang.Object
-
-