Iterator

An iterator over a list of Asn1Element children within an ASN.1 structure Designed for traversing ASN.1 components in decoding/parsing scenarios

Properties

Link copied to clipboard

reference to the Asn1Structure this iterator belongs to

Link copied to clipboard

The last element returned by next. Throws NoSuchElementException if next was not yet called.

Link copied to clipboard

The index of the last element returned by next

Link copied to clipboard

Whether this is a forward iterator

Link copied to clipboard

Whether this is a reverse iterator

Functions

Link copied to clipboard
open operator override fun hasNext(): Boolean

Returns true if more children can be retrieved by next. false otherwise

Link copied to clipboard
open operator override fun next(): Asn1Element

Returns the next child held by this structure. Useful for iterating over its children when parsing complex structures.

Link copied to clipboard

Exception-free version of next

Link copied to clipboard

Returns the next child that would be returned by a call to next without advancing to iterator. If there are no more children, returns null.

Link copied to clipboard

Returns an iterator with reversed direction. Current iteration position is preserved.