Class CharArrayIterator
java.lang.Object
org.apache.lucene.analysis.icu.segmentation.CharArrayIterator
- All Implemented Interfaces:
Cloneable,CharacterIterator
Wraps a char[] as CharacterIterator for processing with a BreakIterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate char[]private intprivate intprivate intprivate intFields inherited from interface java.text.CharacterIterator
DONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()charcurrent()charfirst()intintintgetIndex()intintgetStart()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
-
Field Details
-
array
private char[] array -
start
private int start -
index
private int index -
length
private int length -
limit
private int limit
-
-
Constructor Details
-
CharArrayIterator
CharArrayIterator()
-
-
Method Details
-
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 interfaceCharacterIterator
-
first
public char first()- Specified by:
firstin interfaceCharacterIterator
-
getBeginIndex
public int getBeginIndex()- Specified by:
getBeginIndexin interfaceCharacterIterator
-
getEndIndex
public int getEndIndex()- Specified by:
getEndIndexin interfaceCharacterIterator
-
getIndex
public int getIndex()- Specified by:
getIndexin interfaceCharacterIterator
-
last
public char last()- Specified by:
lastin interfaceCharacterIterator
-
next
public char next()- Specified by:
nextin interfaceCharacterIterator
-
previous
public char previous()- Specified by:
previousin interfaceCharacterIterator
-
setIndex
public char setIndex(int position) - Specified by:
setIndexin interfaceCharacterIterator
-
clone
- Specified by:
clonein interfaceCharacterIterator- Overrides:
clonein classObject
-