APIdia Launch Partner
Top Description Methods
jdk.internal.net.http

pack-priv Interface CheckedIterator<E>

Known Direct Implementers
jdk.internal.net.http.RequestPublishers.IterablePublisher.ByteBufferIterator, jdk.internal.net.http.RequestPublishers.StreamIterator, jdk.internal.net.http.RequestPublishers.FileChannelIterator
Type Parameters
<E>
the type of elements returned by this iterator
Imports
java.util.Iterator, .NoSuchElementException

An Iterator clone supporting checked exceptions.

Method Summary

Modifier and TypeMethod and Description
public static <E> CheckedIterator<E>
fromIterator(Iterator<E> iterator)

public boolean

Returns:

true if the iteration has more elements
hasNext
()

Returns true if the iteration has more elements.

public E

Returns:

the next element in the iteration
next
()

Returns the next element in the iteration.

Method Detail

fromIteratorback to summary
public static <E> CheckedIterator<E> fromIterator(Iterator<E> iterator)
hasNextback to summary
public boolean hasNext() throws Exception

Returns true if the iteration has more elements.

Returns:boolean

true if the iteration has more elements

Exceptions
Exception:
if operation fails
nextback to summary
public E next() throws Exception

Returns the next element in the iteration.

Returns:E

the next element in the iteration

Exceptions
Exception:
if operation fails
NoSuchElementException:
if the iteration has no more elements