Package org.apache.abdera.i18n.text
Class CodepointIterator
java.lang.Object
org.apache.abdera.i18n.text.CodepointIterator
- Direct Known Subclasses:
DelegatingCodepointIterator
@Deprecated(since="2021-07-29")
public abstract class CodepointIterator
extends Object
implements Iterator<Codepoint>
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Provides an iterator over Unicode Codepoints
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CodepointIteratorforByteArray(byte[] array) Deprecated.Get a CodepointIterator for the specified byte array, using the default charsetstatic CodepointIteratorforByteArray(byte[] array, String charset) Deprecated.Get a CodepointIterator for the specified byte array, using the specified charsetstatic CodepointIteratorforCharArray(char[] array) Deprecated.Get a CodepointIterator for the specified char arraystatic CodepointIteratorforCharBuffer(CharBuffer buffer) Deprecated.Get a CodepointIterator for the specified CharBufferstatic CodepointIteratorDeprecated.Get a CodepointIterator for the specified CharSequencestatic CodepointIteratorDeprecated.Get a CodepointIterator for the specified InputStreamstatic CodepointIteratorforInputStream(InputStream in, String charset) Deprecated.Get a CodepointIterator for the specified InputStream using the specified charsetstatic CodepointIteratorDeprecated.Get a CodepointIterator for the specified ReadableByteChannelstatic CodepointIteratorforReadableByteChannel(ReadableByteChannel channel, String charset) Deprecated.Get a CodepointIterator for the specified ReadableByteChannelstatic CodepointIteratorDeprecated.Get a CodepointIterator for the specified ReaderbooleanhasNext()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 surrogateintDeprecated.Return the final index positionintlimit()Deprecated.Return the iterator limitnext()Deprecated.Return the next codepointchar[]Deprecated.Return the next chars.peek()Deprecated.Peek the next codepointpeek(int index) Deprecated.Peek the specified codepointchar[]Deprecated.Peek the next chars in the iterator.intposition()Deprecated.Get the iterator positionvoidposition(int n) Deprecated.Set the iterator positionintDeprecated.Return the remaining iterator sizevoidremove()Deprecated.static CodepointIteratorrestrict(CodepointIterator ci, Filter filter) Deprecated.static CodepointIteratorrestrict(CodepointIterator ci, Filter filter, boolean scanning) Deprecated.static CodepointIteratorrestrict(CodepointIterator ci, Filter filter, boolean scanning, boolean invert) Deprecated.Deprecated.Deprecated.Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CodepointIterator
public CodepointIterator()Deprecated.
-
-
Method Details
-
forCharArray
Deprecated.Get a CodepointIterator for the specified char array -
forCharSequence
Deprecated.Get a CodepointIterator for the specified CharSequence -
forByteArray
Deprecated.Get a CodepointIterator for the specified byte array, using the default charset -
forByteArray
Deprecated.Get a CodepointIterator for the specified byte array, using the specified charset -
forCharBuffer
Deprecated.Get a CodepointIterator for the specified CharBuffer -
forReadableByteChannel
Deprecated.Get a CodepointIterator for the specified ReadableByteChannel -
forReadableByteChannel
Deprecated.Get a CodepointIterator for the specified ReadableByteChannel -
forInputStream
Deprecated.Get a CodepointIterator for the specified InputStream -
forInputStream
Deprecated.Get a CodepointIterator for the specified InputStream using the specified charset -
forReader
Deprecated.Get a CodepointIterator for the specified Reader -
restrict
Deprecated. -
restrict
Deprecated. -
restrict
public static CodepointIterator restrict(CodepointIterator ci, Filter filter, boolean scanning, boolean invert) Deprecated. -
restrict
Deprecated. -
restrict
Deprecated. -
restrict
Deprecated. -
hasNext
public boolean hasNext()Deprecated.True if there are codepoints remaining -
lastPosition
public int lastPosition()Deprecated.Return the final index position -
nextChars
Deprecated.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- Throws:
InvalidCharacterException
-
peekChars
Deprecated.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- Throws:
InvalidCharacterException
-
next
Deprecated.Return the next codepoint- Specified by:
nextin interfaceIterator<Codepoint>- Throws:
InvalidCharacterException
-
peek
Deprecated.Peek the next codepoint- Throws:
InvalidCharacterException
-
peek
Deprecated.Peek the specified codepoint- Throws:
InvalidCharacterException
-
position
public void position(int n) Deprecated.Set the iterator position -
position
public int position()Deprecated.Get the iterator position -
limit
public int limit()Deprecated.Return the iterator limit -
remaining
public int remaining()Deprecated.Return the remaining iterator size -
isHigh
public boolean isHigh(int index) Deprecated.Returns true if the char at the specified index is a high surrogate -
isLow
public boolean isLow(int index) Deprecated.Returns true if the char at the specified index is a low surrogate -
remove
public void remove()Deprecated.
-