Class AsynchronousChannelHelper
- java.lang.Object
-
- com.mongodb.async.client.gridfs.helpers.AsynchronousChannelHelper
-
@Deprecated public final class AsynchronousChannelHelper extends Object
Deprecated.Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)A helper class to convert toAsynchronousByteChannel
orAsynchronousFileChannel
instances intoAsyncInputStream
orAsyncOutputStream
instances.Requires Java 7 or greater.
- Since:
- 3.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AsyncInputStream
channelToInputStreamβ(AsynchronousByteChannel asynchronousByteChannel)
Deprecated.Converts aAsynchronousByteChannel
into aAsyncInputStream
static AsyncInputStream
channelToInputStreamβ(AsynchronousFileChannel asynchronousFileChannel)
Deprecated.Converts aAsynchronousFileChannel
into aAsyncInputStream
static AsyncOutputStream
channelToOutputStreamβ(AsynchronousByteChannel asynchronousByteChannel)
Deprecated.Converts aAsynchronousByteChannel
into aAsyncOutputStream
static AsyncOutputStream
channelToOutputStreamβ(AsynchronousFileChannel asynchronousFileChannel)
Deprecated.Converts aAsynchronousFileChannel
into aAsyncOutputStream
-
-
-
Method Detail
-
channelToInputStream
public static AsyncInputStream channelToInputStreamβ(AsynchronousByteChannel asynchronousByteChannel)
Deprecated.Converts aAsynchronousByteChannel
into aAsyncInputStream
- Parameters:
asynchronousByteChannel
- the AsynchronousByteChannel- Returns:
- the AsyncInputStream
-
channelToInputStream
public static AsyncInputStream channelToInputStreamβ(AsynchronousFileChannel asynchronousFileChannel)
Deprecated.Converts aAsynchronousFileChannel
into aAsyncInputStream
- Parameters:
asynchronousFileChannel
- the AsynchronousFileChannel- Returns:
- the AsyncInputStream
-
channelToOutputStream
public static AsyncOutputStream channelToOutputStreamβ(AsynchronousByteChannel asynchronousByteChannel)
Deprecated.Converts aAsynchronousByteChannel
into aAsyncOutputStream
- Parameters:
asynchronousByteChannel
- the AsynchronousByteChannel- Returns:
- the AsyncOutputStream
-
channelToOutputStream
public static AsyncOutputStream channelToOutputStreamβ(AsynchronousFileChannel asynchronousFileChannel)
Deprecated.Converts aAsynchronousFileChannel
into aAsyncOutputStream
- Parameters:
asynchronousFileChannel
- the AsynchronousFileChannel- Returns:
- the AsyncOutputStream
-
-