Package org.apache.abdera.i18n.text
Class CodepointIterator
- java.lang.Object
-
- org.apache.abdera.i18n.text.CodepointIterator
-
- All Implemented Interfaces:
java.util.Iterator<Codepoint>
- Direct Known Subclasses:
DelegatingCodepointIterator
@Deprecated(since="2021-07-29") public abstract class CodepointIterator extends java.lang.Object implements java.util.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 Classes Modifier and Type Class Description static class
CodepointIterator.RestrictedCodepointIterator
Deprecated.
-
Constructor Summary
Constructors Constructor Description CodepointIterator()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CodepointIterator
forByteArray(byte[] array)
Deprecated.Get a CodepointIterator for the specified byte array, using the default charsetstatic CodepointIterator
forByteArray(byte[] array, java.lang.String charset)
Deprecated.Get a CodepointIterator for the specified byte array, using the specified charsetstatic CodepointIterator
forCharArray(char[] array)
Deprecated.Get a CodepointIterator for the specified char arraystatic CodepointIterator
forCharBuffer(java.nio.CharBuffer buffer)
Deprecated.Get a CodepointIterator for the specified CharBufferstatic CodepointIterator
forCharSequence(java.lang.CharSequence seq)
Deprecated.Get a CodepointIterator for the specified CharSequencestatic CodepointIterator
forInputStream(java.io.InputStream in)
Deprecated.Get a CodepointIterator for the specified InputStreamstatic CodepointIterator
forInputStream(java.io.InputStream in, java.lang.String charset)
Deprecated.Get a CodepointIterator for the specified InputStream using the specified charsetstatic CodepointIterator
forReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
Deprecated.Get a CodepointIterator for the specified ReadableByteChannelstatic CodepointIterator
forReadableByteChannel(java.nio.channels.ReadableByteChannel channel, java.lang.String charset)
Deprecated.Get a CodepointIterator for the specified ReadableByteChannelstatic CodepointIterator
forReader(java.io.Reader in)
Deprecated.Get a CodepointIterator for the specified Readerboolean
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
lastPosition()
Deprecated.Return the final index positionint
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 n)
Deprecated.Set the iterator positionint
remaining()
Deprecated.Return the remaining iterator sizevoid
remove()
Deprecated.static CodepointIterator
restrict(CodepointIterator ci, Filter filter)
Deprecated.static CodepointIterator
restrict(CodepointIterator ci, Filter filter, boolean scanning)
Deprecated.static CodepointIterator
restrict(CodepointIterator ci, Filter filter, boolean scanning, boolean invert)
Deprecated.CodepointIterator
restrict(Filter filter)
Deprecated.CodepointIterator
restrict(Filter filter, boolean scanning)
Deprecated.CodepointIterator
restrict(Filter filter, boolean scanning, boolean invert)
Deprecated.
-
-
-
Method Detail
-
forCharArray
public static CodepointIterator forCharArray(char[] array)
Deprecated.Get a CodepointIterator for the specified char array
-
forCharSequence
public static CodepointIterator forCharSequence(java.lang.CharSequence seq)
Deprecated.Get a CodepointIterator for the specified CharSequence
-
forByteArray
public static CodepointIterator forByteArray(byte[] array)
Deprecated.Get a CodepointIterator for the specified byte array, using the default charset
-
forByteArray
public static CodepointIterator forByteArray(byte[] array, java.lang.String charset)
Deprecated.Get a CodepointIterator for the specified byte array, using the specified charset
-
forCharBuffer
public static CodepointIterator forCharBuffer(java.nio.CharBuffer buffer)
Deprecated.Get a CodepointIterator for the specified CharBuffer
-
forReadableByteChannel
public static CodepointIterator forReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
Deprecated.Get a CodepointIterator for the specified ReadableByteChannel
-
forReadableByteChannel
public static CodepointIterator forReadableByteChannel(java.nio.channels.ReadableByteChannel channel, java.lang.String charset)
Deprecated.Get a CodepointIterator for the specified ReadableByteChannel
-
forInputStream
public static CodepointIterator forInputStream(java.io.InputStream in)
Deprecated.Get a CodepointIterator for the specified InputStream
-
forInputStream
public static CodepointIterator forInputStream(java.io.InputStream in, java.lang.String charset)
Deprecated.Get a CodepointIterator for the specified InputStream using the specified charset
-
forReader
public static CodepointIterator forReader(java.io.Reader in)
Deprecated.Get a CodepointIterator for the specified Reader
-
restrict
public static CodepointIterator restrict(CodepointIterator ci, Filter filter)
Deprecated.
-
restrict
public static CodepointIterator restrict(CodepointIterator ci, Filter filter, boolean scanning)
Deprecated.
-
restrict
public static CodepointIterator restrict(CodepointIterator ci, Filter filter, boolean scanning, boolean invert)
Deprecated.
-
restrict
public CodepointIterator restrict(Filter filter)
Deprecated.
-
restrict
public CodepointIterator restrict(Filter filter, boolean scanning)
Deprecated.
-
restrict
public CodepointIterator restrict(Filter filter, boolean scanning, boolean invert)
Deprecated.
-
hasNext
public boolean hasNext()
Deprecated.True if there are codepoints remaining- Specified by:
hasNext
in interfacejava.util.Iterator<Codepoint>
-
lastPosition
public int lastPosition()
Deprecated.Return the final index position
-
nextChars
public char[] nextChars() throws InvalidCharacterException
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
public char[] peekChars() throws InvalidCharacterException
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
public Codepoint next() throws InvalidCharacterException
Deprecated.Return the next codepoint- Specified by:
next
in interfacejava.util.Iterator<Codepoint>
- Throws:
InvalidCharacterException
-
peek
public Codepoint peek() throws InvalidCharacterException
Deprecated.Peek the next codepoint- Throws:
InvalidCharacterException
-
peek
public Codepoint peek(int index) throws InvalidCharacterException
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.- Specified by:
remove
in interfacejava.util.Iterator<Codepoint>
-
-