implicit class JavaAsyncInputStreamToScala extends AsyncInputStream
- Alphabetic
- By Inheritance
- JavaAsyncInputStreamToScala
- AsyncInputStream
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JavaAsyncInputStreamToScala(wrapped: com.mongodb.async.client.gridfs.AsyncInputStream)
Value Members
- def close(): Observable[Completed]
Closes the input stream
Closes the input stream
- returns
a Observable with a single element indicating when the operation has completed
- Definition Classes
- JavaAsyncInputStreamToScala → AsyncInputStream
- def read(dst: ByteBuffer): Observable[Int]
Reads a sequence of bytes from this stream into the given buffer.
Reads a sequence of bytes from this stream into the given buffer.
- dst
the destination buffer
- returns
an Observable with a single element indicating total number of bytes read into the buffer, or
-1
if there is no more data because the end of the stream has been reached.
- Definition Classes
- JavaAsyncInputStreamToScala → AsyncInputStream
- def skip(bytesToSkip: Long): Observable[Long]
Skips over and discards n bytes of data from this input stream.
Skips over and discards n bytes of data from this input stream.
- bytesToSkip
the number of bytes to skip
- returns
an Observable with a single element indicating the total number of bytes skipped
- Definition Classes
- JavaAsyncInputStreamToScala → AsyncInputStream
- Since
2.6
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: