Top Fields Constructors Methods
org.wildfly.common.iteration

pack-priv final Class Utf8EncodingByteIterator

extends ByteIterator
Class Inheritance
Imports
java.util.NoSuchElementException, org.wildfly.common.Assert, org.wildfly.common.bytes.ByteStringBuilder

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
Utf8EncodingByteIterator(final CodePointIterator iter, final boolean escapeNul)

Method Summary

Modifier and TypeMethod and Description
public ByteStringBuilder
public long
public boolean
hasNext()

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

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

Determine if there are more bytes after the current byte.
public boolean
hasPrevious()

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

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

Determine if there are more bytes before the current byte.
public int
public int
peekNext()

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

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

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

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

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

Peek at the previous byte without moving backwards.
public int
Inherited from org.wildfly.common.iteration.ByteIterator:
asInputStreamasLatin1StringasUtf8Stringbase32Encodebase32Encodebase32Encodebase64Encodebase64Encodebase64EncodecontentEqualsdelimitedBydoFinaldoFinaldraindraindraindraindrainAlldrainTodrainToLatin1drainToUtf8getBE16getBE32getBE64getLE16getLE32getLE64getPackedBE32getPackedBE64hexEncodehexEncodeinterleavedWithinterleavedWithlimitedToofByteBufferofBytesofBytesofBytesofBytesofIteratorssignupdateupdateupdateverify

Field Detail

cpback to summary
private int cp
escapeNulback to summary
private final boolean escapeNul
iterback to summary
private final CodePointIterator iter
offsetback to summary
private long offset
stback to summary
private int st

Constructor Detail

Utf8EncodingByteIteratorback to summary
pack-priv Utf8EncodingByteIterator(final CodePointIterator iter, final boolean escapeNul)

Method Detail

appendToback to summary
public ByteStringBuilder appendTo(final ByteStringBuilder builder)

Overrides org.wildfly.common.iteration.ByteIterator.appendTo.

getIndexback to summary
public long getIndex()

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

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

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

Get the current offset, in bytes.

Returns:long

the byte offset

hasNextback to summary
public boolean hasNext()

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

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

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

Determine if there are more bytes after the current byte.

Returns:boolean

true if there are more bytes, false otherwise

hasPreviousback to summary
public boolean hasPrevious()

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

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

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

Determine if there are more bytes before the current byte.

Returns:boolean

true if there are more bytes, false otherwise

nextback to summary
public int next() throws NoSuchElementException

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

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

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

Get the next byte.

Returns:int

the next byte

Exceptions
NoSuchElementException:
if hasNext() returns false
peekNextback to summary
public int peekNext() throws NoSuchElementException

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

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

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

Peek at the next byte without advancing.

Returns:int

the next byte

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

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

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

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

Peek at the previous byte without moving backwards.

Returns:int

the previous byte

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

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

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

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

Get the previous byte.

Returns:int

the previous byte

Exceptions
NoSuchElementException:
if hasPrevious() returns false