Packages

t

org.mongodb.scala.gridfs

AsyncOutputStream

trait AsyncOutputStream extends AnyRef

The Async Output Stream interface represents some asynchronous output stream of bytes.

See the org.mongodb.scala.gridfs.helpers package for adapters that create an AsyncOutputStream

Since

1.2

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AsyncOutputStream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def close(): Observable[Completed]

    Closes the output stream

    Closes the output stream

    returns

    a Observable with a single element indicating when the AsyncOutputStream has been closed

  2. abstract def write(src: ByteBuffer): Observable[Int]

    Writes a sequence of bytes from the given buffer into this stream.

    Writes a sequence of bytes from the given buffer into this stream.

    src

    the source buffer containing the data to be written.

    returns

    a Observable returning a single element containing the number of bytes written.