Packages

c

org.mongodb.scala.gridfs

JavaAsyncInputStreamToScala

implicit class JavaAsyncInputStreamToScala extends AsyncInputStream

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaAsyncInputStreamToScala
  2. AsyncInputStream
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new JavaAsyncInputStreamToScala(wrapped: com.mongodb.async.client.gridfs.AsyncInputStream)

Value Members

  1. 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
    JavaAsyncInputStreamToScalaAsyncInputStream
  2. 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
    JavaAsyncInputStreamToScalaAsyncInputStream
  3. 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
    JavaAsyncInputStreamToScalaAsyncInputStream
    Since

    2.6