public abstract class CodepointIterator extends java.lang.Object implements java.util.Iterator<Codepoint>
Modifier and Type | Class and Description |
---|---|
static class |
CodepointIterator.RestrictedCodepointIterator |
Constructor and Description |
---|
CodepointIterator() |
Modifier and Type | Method and Description |
---|---|
static CodepointIterator |
forByteArray(byte[] array)
Get a CodepointIterator for the specified byte array, using the default charset
|
static CodepointIterator |
forByteArray(byte[] array,
java.lang.String charset)
Get a CodepointIterator for the specified byte array, using the specified charset
|
static CodepointIterator |
forCharArray(char[] array)
Get a CodepointIterator for the specified char array
|
static CodepointIterator |
forCharBuffer(java.nio.CharBuffer buffer)
Get a CodepointIterator for the specified CharBuffer
|
static CodepointIterator |
forCharSequence(java.lang.CharSequence seq)
Get a CodepointIterator for the specified CharSequence
|
static CodepointIterator |
forInputStream(java.io.InputStream in)
Get a CodepointIterator for the specified InputStream
|
static CodepointIterator |
forInputStream(java.io.InputStream in,
java.lang.String charset)
Get a CodepointIterator for the specified InputStream using the specified charset
|
static CodepointIterator |
forReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
Get a CodepointIterator for the specified ReadableByteChannel
|
static CodepointIterator |
forReadableByteChannel(java.nio.channels.ReadableByteChannel channel,
java.lang.String charset)
Get a CodepointIterator for the specified ReadableByteChannel
|
static CodepointIterator |
forReader(java.io.Reader in)
Get a CodepointIterator for the specified Reader
|
boolean |
hasNext()
True if there are codepoints remaining
|
boolean |
isHigh(int index)
Returns true if the char at the specified index is a high surrogate
|
boolean |
isLow(int index)
Returns true if the char at the specified index is a low surrogate
|
int |
lastPosition()
Return the final index position
|
int |
limit()
Return the iterator limit
|
Codepoint |
next()
Return the next codepoint
|
char[] |
nextChars()
Return the next chars.
|
Codepoint |
peek()
Peek the next codepoint
|
Codepoint |
peek(int index)
Peek the specified codepoint
|
char[] |
peekChars()
Peek the next chars in the iterator.
|
int |
position()
Get the iterator position
|
void |
position(int n)
Set the iterator position
|
int |
remaining()
Return the remaining iterator size
|
void |
remove() |
static CodepointIterator |
restrict(CodepointIterator ci,
Filter filter) |
static CodepointIterator |
restrict(CodepointIterator ci,
Filter filter,
boolean scanning) |
static CodepointIterator |
restrict(CodepointIterator ci,
Filter filter,
boolean scanning,
boolean invert) |
CodepointIterator |
restrict(Filter filter) |
CodepointIterator |
restrict(Filter filter,
boolean scanning) |
CodepointIterator |
restrict(Filter filter,
boolean scanning,
boolean invert) |
public static CodepointIterator forCharArray(char[] array)
public static CodepointIterator forCharSequence(java.lang.CharSequence seq)
public static CodepointIterator forByteArray(byte[] array)
public static CodepointIterator forByteArray(byte[] array, java.lang.String charset)
public static CodepointIterator forCharBuffer(java.nio.CharBuffer buffer)
public static CodepointIterator forReadableByteChannel(java.nio.channels.ReadableByteChannel channel)
public static CodepointIterator forReadableByteChannel(java.nio.channels.ReadableByteChannel channel, java.lang.String charset)
public static CodepointIterator forInputStream(java.io.InputStream in)
public static CodepointIterator forInputStream(java.io.InputStream in, java.lang.String charset)
public static CodepointIterator forReader(java.io.Reader in)
public static CodepointIterator restrict(CodepointIterator ci, Filter filter)
public static CodepointIterator restrict(CodepointIterator ci, Filter filter, boolean scanning)
public static CodepointIterator restrict(CodepointIterator ci, Filter filter, boolean scanning, boolean invert)
public CodepointIterator restrict(Filter filter)
public CodepointIterator restrict(Filter filter, boolean scanning)
public CodepointIterator restrict(Filter filter, boolean scanning, boolean invert)
public boolean hasNext()
hasNext
in interface java.util.Iterator<Codepoint>
public int lastPosition()
public char[] nextChars() throws InvalidCharacterException
InvalidCharacterException
public char[] peekChars() throws InvalidCharacterException
InvalidCharacterException
public Codepoint next() throws InvalidCharacterException
next
in interface java.util.Iterator<Codepoint>
InvalidCharacterException
public Codepoint peek() throws InvalidCharacterException
InvalidCharacterException
public Codepoint peek(int index) throws InvalidCharacterException
InvalidCharacterException
public void position(int n)
public int position()
public int limit()
public int remaining()
public boolean isHigh(int index)
public boolean isLow(int index)
public void remove()
remove
in interface java.util.Iterator<Codepoint>
Copyright © 2010 - 2020 Adobe. All Rights Reserved