Package org.apache.tools.ant.util
Class StreamUtils
java.lang.Object
org.apache.tools.ant.util.StreamUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Stream
<T> Turn Enumeration into a Streamstatic <T> Stream
<T> iteratorAsStream
(Iterator<T> i) Turn Iterator into a Stream
-
Constructor Details
-
StreamUtils
public StreamUtils()
-
-
Method Details
-
enumerationAsStream
Turn Enumeration into a Stream- Type Parameters:
T
- Enumeration type- Parameters:
e
- Enumeration- Returns:
- Stream
-
iteratorAsStream
-