Class AsyncStreamHelper


  • Deprecated. 
    Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)

    @Deprecated
    public final class AsyncStreamHelper
    extends Object
    A general helper class that creates AsyncInputStream or AsyncOutputStream instances. Provides support for:
    • byte[] - Converts byte arrays into Async Streams
    • ByteBuffer - Converts ByteBuffers into Async Streams
    • InputStream - Converts InputStreams into Async Streams (Note: InputStream implementations are blocking)
    • OutputStream - Converts OutputStreams into Async Streams (Note: OutputStream implementations are blocking)
    Since:
    3.3