public class EZInputStreamAdapter
extends java.lang.Object
| Constructor and Description | 
|---|
EZInputStreamAdapter()  | 
| Modifier and Type | Method and Description | 
|---|---|
static <T> java.util.concurrent.CompletableFuture<T> | 
consume(Stream stream,
       java.util.function.Function<com.google.common.io.CountingInputStream,T> streamConsumer)
Provides an InputStream from a bluemind  
Stream. | 
public static <T> java.util.concurrent.CompletableFuture<T> consume(Stream stream, java.util.function.Function<com.google.common.io.CountingInputStream,T> streamConsumer)
Stream.stream - the stream to adapt as in InputStreamstreamConsumer - the consumer will get a CountingInputStream and
                       can safely perform blocking reads as it is invoked from
                       a dedicated thread.Copyright © 2023. All Rights Reserved.