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 booleanhasNext()Deprecated.True if there are codepoints remainingbooleanisHigh(int index)Deprecated.Returns true if the char at the specified index is a high surrogatebooleanisLow(int index)Deprecated.Returns true if the char at the specified index is a low surrogateintlimit()Deprecated.Return the iterator limitCodepointnext()Deprecated.Return the next codepointchar[]nextChars()Deprecated.Return the next chars.Codepointpeek()Deprecated.Peek the next codepointCodepointpeek(int index)Deprecated.Peek the specified codepointchar[]peekChars()Deprecated.Peek the next chars in the iterator.intposition()Deprecated.Get the iterator positionvoidposition(int position)Deprecated.Set the iterator positionintremaining()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:CodepointIteratorTrue if there are codepoints remaining- Specified by:
hasNextin interfacejava.util.Iterator<Codepoint>- Overrides:
hasNextin classCodepointIterator
-
isHigh
public boolean isHigh(int index)
Deprecated.Description copied from class:CodepointIteratorReturns true if the char at the specified index is a high surrogate- Overrides:
isHighin classCodepointIterator
-
isLow
public boolean isLow(int index)
Deprecated.Description copied from class:CodepointIteratorReturns true if the char at the specified index is a low surrogate- Overrides:
isLowin classCodepointIterator
-
limit
public int limit()
Deprecated.Description copied from class:CodepointIteratorReturn the iterator limit- Overrides:
limitin classCodepointIterator
-
next
public Codepoint next()
Deprecated.Description copied from class:CodepointIteratorReturn the next codepoint- Specified by:
nextin interfacejava.util.Iterator<Codepoint>- Overrides:
nextin classCodepointIterator
-
nextChars
public char[] nextChars()
Deprecated.Description copied from class:CodepointIteratorReturn 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:
nextCharsin classCodepointIterator
-
peek
public Codepoint peek()
Deprecated.Description copied from class:CodepointIteratorPeek the next codepoint- Overrides:
peekin classCodepointIterator
-
peek
public Codepoint peek(int index)
Deprecated.Description copied from class:CodepointIteratorPeek the specified codepoint- Overrides:
peekin classCodepointIterator
-
peekChars
public char[] peekChars()
Deprecated.Description copied from class:CodepointIteratorPeek 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:
peekCharsin classCodepointIterator
-
position
public int position()
Deprecated.Description copied from class:CodepointIteratorGet the iterator position- Overrides:
positionin classCodepointIterator
-
remaining
public int remaining()
Deprecated.Description copied from class:CodepointIteratorReturn the remaining iterator size- Overrides:
remainingin classCodepointIterator
-
position
public void position(int position)
Deprecated.Description copied from class:CodepointIteratorSet the iterator position- Overrides:
positionin classCodepointIterator
-
-