Class AsynchronousChannelHelper
- java.lang.Object
-
- com.mongodb.async.client.gridfs.helpers.AsynchronousChannelHelper
-
Deprecated.Prefer the Reactive Streams-based asynchronous driver (mongodb-driver-reactivestreams artifactId)
@Deprecated public final class AsynchronousChannelHelper extends java.lang.ObjectA helper class to convert toAsynchronousByteChannelorAsynchronousFileChannelinstances intoAsyncInputStreamorAsyncOutputStreaminstances.Requires Java 7 or greater.
- Since:
- 3.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AsyncInputStreamchannelToInputStream(java.nio.channels.AsynchronousByteChannel asynchronousByteChannel)Deprecated.Converts aAsynchronousByteChannelinto aAsyncInputStreamstatic AsyncInputStreamchannelToInputStream(java.nio.channels.AsynchronousFileChannel asynchronousFileChannel)Deprecated.Converts aAsynchronousFileChannelinto aAsyncInputStreamstatic AsyncOutputStreamchannelToOutputStream(java.nio.channels.AsynchronousByteChannel asynchronousByteChannel)Deprecated.Converts aAsynchronousByteChannelinto aAsyncOutputStreamstatic AsyncOutputStreamchannelToOutputStream(java.nio.channels.AsynchronousFileChannel asynchronousFileChannel)Deprecated.Converts aAsynchronousFileChannelinto aAsyncOutputStream
-
-
-
Method Detail
-
channelToInputStream
public static AsyncInputStream channelToInputStream(java.nio.channels.AsynchronousByteChannel asynchronousByteChannel)
Deprecated.Converts aAsynchronousByteChannelinto aAsyncInputStream- Parameters:
asynchronousByteChannel- the AsynchronousByteChannel- Returns:
- the AsyncInputStream
-
channelToInputStream
public static AsyncInputStream channelToInputStream(java.nio.channels.AsynchronousFileChannel asynchronousFileChannel)
Deprecated.Converts aAsynchronousFileChannelinto aAsyncInputStream- Parameters:
asynchronousFileChannel- the AsynchronousFileChannel- Returns:
- the AsyncInputStream
-
channelToOutputStream
public static AsyncOutputStream channelToOutputStream(java.nio.channels.AsynchronousByteChannel asynchronousByteChannel)
Deprecated.Converts aAsynchronousByteChannelinto aAsyncOutputStream- Parameters:
asynchronousByteChannel- the AsynchronousByteChannel- Returns:
- the AsyncOutputStream
-
channelToOutputStream
public static AsyncOutputStream channelToOutputStream(java.nio.channels.AsynchronousFileChannel asynchronousFileChannel)
Deprecated.Converts aAsynchronousFileChannelinto aAsyncOutputStream- Parameters:
asynchronousFileChannel- the AsynchronousFileChannel- Returns:
- the AsyncOutputStream
-
-