object AsynchronousChannelHelper
A helper class to convert to AsynchronousByteChannel or AsynchronousFileChannel instances into org.mongodb.scala.gridfs.AsyncInputStream or org.mongodb.scala.gridfs.AsyncOutputStream instances.
- Since
1.2
- Note
Requires Java 7 or greater.
- Alphabetic
- By Inheritance
- AsynchronousChannelHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
channelToInputStream(asynchronousFileChannel: AsynchronousFileChannel): AsyncInputStream
Converts a AsynchronousFileChannel into a AsyncInputStream
Converts a AsynchronousFileChannel into a AsyncInputStream
- asynchronousFileChannel
the AsynchronousFileChannel
- returns
the AsyncInputStream
-
def
channelToInputStream(asynchronousByteChannel: AsynchronousByteChannel): AsyncInputStream
Converts a AsynchronousByteChannel into a AsyncInputStream
Converts a AsynchronousByteChannel into a AsyncInputStream
- asynchronousByteChannel
the AsynchronousByteChannel
- returns
the AsyncInputStream
-
def
channelToOutputStream(asynchronousFileChannel: AsynchronousFileChannel): AsyncOutputStream
Converts a AsynchronousFileChannel into a AsyncOutputStream
Converts a AsynchronousFileChannel into a AsyncOutputStream
- asynchronousFileChannel
the AsynchronousFileChannel
- returns
the AsyncOutputStream
-
def
channelToOutputStream(asynchronousByteChannel: AsynchronousByteChannel): AsyncOutputStream
Converts a AsynchronousByteChannel into a AsyncOutputStream
Converts a AsynchronousByteChannel into a AsyncOutputStream
- asynchronousByteChannel
the AsynchronousByteChannel
- returns
the AsyncOutputStream
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: