Top Fields Constructors Methods
org.wildfly.common.iteration

pack-priv final Class DelimitedCodePointIterator

extends CodePointIterator
Class Inheritance
Imports
java.util.NoSuchElementException

Field Summary

Modifier and TypeField and Description
private final int[]
private final CodePointIterator
pack-priv long
Inherited from org.wildfly.common.iteration.CodePointIterator:
EMPTY

Constructor Summary

AccessConstructor and Description
pack-priv
DelimitedCodePointIterator(final CodePointIterator iter, final int... delims)

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.
private boolean
isDelim(int b)

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
Inherited from org.wildfly.common.iteration.CodePointIterator:
asLatin1asUtf8asUtf8base32Decodebase32Decodebase32Decodebase64Decodebase64Decodebase64DecodecontentEqualscontentEqualsdelimitedBydrainTodrainTodrainTodrainTodrainToStringdrainToStringdrainToStringdrainToStringhexDecodelimitedToofCharsofCharsofCharsofLatin1BytesofLatin1BytesofStringofStringofUtf8BytesofUtf8BytesskipskipAllskipCrLf

Field Detail

delimsback to summary
private final int[] delims
iterback to summary
private final CodePointIterator iter
offsetback to summary
pack-priv long offset

Constructor Detail

DelimitedCodePointIteratorback to summary
pack-priv DelimitedCodePointIterator(final CodePointIterator iter, final int... delims)

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

isDelimback to summary
private boolean isDelim(int b)
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