Top Fields Constructors Methods
org.wildfly.common.iteration

pack-priv Class Utf8DecodingIterator

extends CodePointIterator
Class Inheritance
Imports
java.util.NoSuchElementException

Field Summary

Modifier and TypeField and Description
private final ByteIterator
private long
Inherited from org.wildfly.common.iteration.CodePointIterator:
EMPTY

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public long
getIndex()

Implements abstract org.wildfly.common.iteration.CodePointIterator.getIndex.

Implements org.wildfly.common.iteration.IndexIterator.getIndex.

Get the current offset, by code point.
public boolean
hasNext()

Implements abstract org.wildfly.common.iteration.CodePointIterator.hasNext.

Implements org.wildfly.common.iteration.BiDirIntIterator.hasNext.

Determine if there are more code points after the current code point.
public boolean
hasPrevious()

Implements abstract org.wildfly.common.iteration.CodePointIterator.hasPrevious.

Implements org.wildfly.common.iteration.BiDirIntIterator.hasPrevious.

Determine if there are more code points before the current code point.
public int
public int
peekNext()

Implements abstract org.wildfly.common.iteration.CodePointIterator.peekNext.

Implements org.wildfly.common.iteration.BiDirIntIterator.peekNext.

Peek at the next code point without advancing.
public int
peekPrevious()

Implements abstract org.wildfly.common.iteration.CodePointIterator.peekPrevious.

Implements org.wildfly.common.iteration.BiDirIntIterator.peekPrevious.

Peek at the previous code point without moving backwards.
public int
private void
private void
Inherited from org.wildfly.common.iteration.CodePointIterator:
asLatin1asUtf8asUtf8base32Decodebase32Decodebase32Decodebase64Decodebase64Decodebase64DecodecontentEqualscontentEqualsdelimitedBydrainTodrainTodrainTodrainTodrainToStringdrainToStringdrainToStringdrainToStringhexDecodelimitedToofCharsofCharsofCharsofLatin1BytesofLatin1BytesofStringofStringofUtf8BytesofUtf8BytesskipskipAllskipCrLf

Field Detail

iterback to summary
private final ByteIterator iter
offsetback to summary
private long offset

Constructor Detail

Utf8DecodingIteratorback to summary
pack-priv Utf8DecodingIterator(final ByteIterator iter)

Method Detail

getIndexback to summary
public long getIndex()

Implements abstract org.wildfly.common.iteration.CodePointIterator.getIndex.

Implements org.wildfly.common.iteration.IndexIterator.getIndex.

Doc from org.wildfly.common.iteration.CodePointIterator.getIndex.

Get the current offset, by code point.

Returns:long

the code point offset

hasNextback to summary
public boolean hasNext()

Implements abstract org.wildfly.common.iteration.CodePointIterator.hasNext.

Implements org.wildfly.common.iteration.BiDirIntIterator.hasNext.

Doc from org.wildfly.common.iteration.CodePointIterator.hasNext.

Determine if there are more code points after the current code point.

Returns:boolean

true if there are more code points, false otherwise

hasPreviousback to summary
public boolean hasPrevious()

Implements abstract org.wildfly.common.iteration.CodePointIterator.hasPrevious.

Implements org.wildfly.common.iteration.BiDirIntIterator.hasPrevious.

Doc from org.wildfly.common.iteration.CodePointIterator.hasPrevious.

Determine if there are more code points before the current code point.

Returns:boolean

true if there are more code points, false otherwise

nextback to summary
public int next()

Implements abstract org.wildfly.common.iteration.CodePointIterator.next.

Implements org.wildfly.common.iteration.BiDirIntIterator.next.

Doc from org.wildfly.common.iteration.CodePointIterator.next.

Get the next code point.

Returns:int

the next code point

peekNextback to summary
public int peekNext() throws NoSuchElementException

Implements abstract org.wildfly.common.iteration.CodePointIterator.peekNext.

Implements org.wildfly.common.iteration.BiDirIntIterator.peekNext.

Doc from org.wildfly.common.iteration.CodePointIterator.peekNext.

Peek at the next code point without advancing.

Returns:int

the next code point

Exceptions
NoSuchElementException:
if hasNext() returns false
peekPreviousback to summary
public int peekPrevious() throws NoSuchElementException

Implements abstract org.wildfly.common.iteration.CodePointIterator.peekPrevious.

Implements org.wildfly.common.iteration.BiDirIntIterator.peekPrevious.

Doc from org.wildfly.common.iteration.CodePointIterator.peekPrevious.

Peek at the previous code point without moving backwards.

Returns:int

the previous code point

Exceptions
NoSuchElementException:
if hasPrevious() returns false
previousback to summary
public int previous()

Implements abstract org.wildfly.common.iteration.CodePointIterator.previous.

Implements org.wildfly.common.iteration.BiDirIntIterator.previous.

Doc from org.wildfly.common.iteration.CodePointIterator.previous.

Get the previous code point.

Returns:int

the previous code point

seekToNextback to summary
private void seekToNext()
seekToPrevback to summary
private void seekToPrev()