Package org.apache.abdera.i18n.text
Class DelegatingCodepointIterator
- java.lang.Object
-
- org.apache.abdera.i18n.text.CodepointIterator
-
- org.apache.abdera.i18n.text.DelegatingCodepointIterator
-
- All Implemented Interfaces:
java.util.Iterator<Codepoint>
- Direct Known Subclasses:
CodepointIterator.RestrictedCodepointIterator
@Deprecated(since="2021-07-29") public abstract class DelegatingCodepointIterator extends CodepointIterator
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.Base implementation of a CodepointIterator that filters the output of another CodpointIterator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.abdera.i18n.text.CodepointIterator
CodepointIterator.RestrictedCodepointIterator
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
hasNext()
Deprecated.True if there are codepoints remainingboolean
isHigh(int index)
Deprecated.Returns true if the char at the specified index is a high surrogateboolean
isLow(int index)
Deprecated.Returns true if the char at the specified index is a low surrogateint
limit()
Deprecated.Return the iterator limitCodepoint
next()
Deprecated.Return the next codepointchar[]
nextChars()
Deprecated.Return the next chars.Codepoint
peek()
Deprecated.Peek the next codepointCodepoint
peek(int index)
Deprecated.Peek the specified codepointchar[]
peekChars()
Deprecated.Peek the next chars in the iterator.int
position()
Deprecated.Get the iterator positionvoid
position(int position)
Deprecated.Set the iterator positionint
remaining()
Deprecated.Return the remaining iterator size-
Methods inherited from class org.apache.abdera.i18n.text.CodepointIterator
forByteArray, forByteArray, forCharArray, forCharBuffer, forCharSequence, forInputStream, forInputStream, forReadableByteChannel, forReadableByteChannel, forReader, lastPosition, remove, restrict, restrict, restrict, restrict, restrict, restrict
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Deprecated.Description copied from class:CodepointIterator
True if there are codepoints remaining- Specified by:
hasNext
in interfacejava.util.Iterator<Codepoint>
- Overrides:
hasNext
in classCodepointIterator
-
isHigh
public boolean isHigh(int index)
Deprecated.Description copied from class:CodepointIterator
Returns true if the char at the specified index is a high surrogate- Overrides:
isHigh
in classCodepointIterator
-
isLow
public boolean isLow(int index)
Deprecated.Description copied from class:CodepointIterator
Returns true if the char at the specified index is a low surrogate- Overrides:
isLow
in classCodepointIterator
-
limit
public int limit()
Deprecated.Description copied from class:CodepointIterator
Return the iterator limit- Overrides:
limit
in classCodepointIterator
-
next
public Codepoint next()
Deprecated.Description copied from class:CodepointIterator
Return the next codepoint- Specified by:
next
in interfacejava.util.Iterator<Codepoint>
- Overrides:
next
in classCodepointIterator
-
nextChars
public char[] nextChars()
Deprecated.Description copied from class:CodepointIterator
Return the next chars. If the codepoint is not supplemental, the char array will have a single member. If the codepoint is supplemental, the char array will have two members, representing the high and low surrogate chars- Overrides:
nextChars
in classCodepointIterator
-
peek
public Codepoint peek()
Deprecated.Description copied from class:CodepointIterator
Peek the next codepoint- Overrides:
peek
in classCodepointIterator
-
peek
public Codepoint peek(int index)
Deprecated.Description copied from class:CodepointIterator
Peek the specified codepoint- Overrides:
peek
in classCodepointIterator
-
peekChars
public char[] peekChars()
Deprecated.Description copied from class:CodepointIterator
Peek the next chars in the iterator. If the codepoint is not supplemental, the char array will have a single member. If the codepoint is supplemental, the char array will have two members, representing the high and low surrogate chars- Overrides:
peekChars
in classCodepointIterator
-
position
public int position()
Deprecated.Description copied from class:CodepointIterator
Get the iterator position- Overrides:
position
in classCodepointIterator
-
remaining
public int remaining()
Deprecated.Description copied from class:CodepointIterator
Return the remaining iterator size- Overrides:
remaining
in classCodepointIterator
-
position
public void position(int position)
Deprecated.Description copied from class:CodepointIterator
Set the iterator position- Overrides:
position
in classCodepointIterator
-
-