jodd-core/src/main/java/jodd/util/CollectionUtil.java
public static <T> Stream<T> streamOf(final Iterator<T> iterator) {
		return StreamSupport.stream(((Iterable<T>) () -> iterator).spliterator(), false);
	}
public static <T> Stream<T> streamOf(final Iterator<T> iterator) {
		return StreamSupport.stream(((Iterable<T>) () -> iterator).spliterator(), false);
	}
public static < T > Stream < T > streamOf ( final Iterator < T > iterator ) { return StreamSupport . stream ( ( ( Iterable < T > ) ( ) -> iterator ) . spliterator ( ) , false ) ; }
Converts iterator to a stream.
Converts iterator to a stream .