public abstract class CharCursor
extends java.lang.Object
implements java.text.CharacterIterator
Constructor and Description |
---|
CharCursor() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
clone() |
abstract char |
current() |
char |
first() |
abstract int |
getBeginIndex() |
abstract int |
getEndIndex() |
abstract int |
getIndex()
returns the current location of the cursor
|
char |
last() |
abstract char |
next() |
char |
prev() |
abstract char |
previous() |
char |
read()
our stuff
|
boolean |
regionMatches(char[] cb,
int offset,
int length)
True if the cursor matches the character buffer
If match fails, return the pointer to its original.
|
boolean |
regionMatchesIgnoreCase(char[] cb,
int offset,
int length)
True if the cursor matches the character buffer
If match fails, return the pointer to its original.
|
abstract char |
setIndex(int pos)
sets the cursor to the position
|
char |
skip(int n)
Skips the next n characters
|
void |
subseq(CharBuffer cb,
int length) |
void |
subseq(CharBuffer cb,
int begin,
int end) |
public abstract int getIndex()
getIndex
in interface java.text.CharacterIterator
public abstract int getBeginIndex()
getBeginIndex
in interface java.text.CharacterIterator
public abstract int getEndIndex()
getEndIndex
in interface java.text.CharacterIterator
public abstract char setIndex(int pos)
setIndex
in interface java.text.CharacterIterator
public abstract char next()
next
in interface java.text.CharacterIterator
public abstract char previous()
previous
in interface java.text.CharacterIterator
public abstract char current()
current
in interface java.text.CharacterIterator
public abstract java.lang.Object clone()
clone
in interface java.text.CharacterIterator
clone
in class java.lang.Object
public char first()
first
in interface java.text.CharacterIterator
public char last()
last
in interface java.text.CharacterIterator
public char read()
public char prev()
public char skip(int n)
public void subseq(CharBuffer cb, int begin, int end)
public void subseq(CharBuffer cb, int length)
public boolean regionMatches(char[] cb, int offset, int length)
public boolean regionMatchesIgnoreCase(char[] cb, int offset, int length)