Top Fields Constructors Methods
org.wildfly.common.iteration

pack-priv abstract Class Base64EncodingIterator

extends CodePointIterator
Class Inheritance
Known Direct Subclasses
org.wildfly.common.iteration.BigEndianBase64EncodingIterator, org.wildfly.common.iteration.LittleEndianBase64EncodingIterator
Imports
java.util.NoSuchElementException, org.wildfly.common.Assert

Field Summary

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

Constructor Summary

AccessConstructor and Description
pack-priv
Base64EncodingIterator(final ByteIterator iter, final boolean addPadding)

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract int
calc0(int b0)

pack-priv abstract int
calc1(int b0, int b1)

pack-priv abstract int
calc2(int b1, int b2)

pack-priv abstract int
calc3(int b2)

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

Field Detail

addPaddingback to summary
private final boolean addPadding
c0back to summary
private int c0
c1back to summary
private int c1
c2back to summary
private int c2
c3back to summary
private int c3
iterback to summary
private final ByteIterator iter
offsetback to summary
private int offset
stateback to summary
private int state

Constructor Detail

Base64EncodingIteratorback to summary
pack-priv Base64EncodingIterator(final ByteIterator iter, final boolean addPadding)

Method Detail

calc0back to summary
pack-priv abstract int calc0(int b0)
calc1back to summary
pack-priv abstract int calc1(int b0, int b1)
calc2back to summary
pack-priv abstract int calc2(int b1, int b2)
calc3back to summary
pack-priv abstract int calc3(int b2)
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() throws NoSuchElementException

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

Exceptions
NoSuchElementException:
if hasNext() returns false
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() throws NoSuchElementException

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

Exceptions
NoSuchElementException:
if hasPrevious() returns false