net.sf.asyncobjects.asyncscala.nio.adapters

OutputStreamAdapter

class OutputStreamAdapter extends GenericOutputAdapter[OutputStream, ByteBuffer, Array[Byte]]

Linear Supertypes
GenericOutputAdapter[OutputStream, ByteBuffer, Array[Byte]], AOutput[ByteBuffer], ACloseable, Asynchronous, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. OutputStreamAdapter
  2. GenericOutputAdapter
  3. AOutput
  4. ACloseable
  5. Asynchronous
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OutputStreamAdapter (o: OutputStream, bufferSize: Int)

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def allocate (bufferSize: Int): Array[Byte]

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def close : Promise[Unit]

    The #close() operation should be idempotent.

    The #close() operation should be idempotent. It should be no problem with closing the same object twice. The close operation should cancel the current operation if possible. The close should throw exception only in serious cases (for example in case of data loss, or inconsistent data)

    returns

    a promise that resolves when object finishes closing

    Definition Classes
    GenericOutputAdapterACloseable
  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def flush : Promise[Unit]

    Flush as much data from buffers as possible.

    Flush as much data from buffers as possible. Note that some data could remain in the buffers if it could not be readily converted (for example, incomplete code points in internal character buffer for net.sf.asyncobjects.nio.text.EncoderOutput).

    returns

    a promise that resolves when data finishes flushing

    Definition Classes
    OutputStreamAdapterAOutput
  14. def fromBuffer (buffer: ByteBuffer, array: Array[Byte], start: Int, size: Int): Unit

    Attributes
    protected
    Definition Classes
    OutputStreamAdapterGenericOutputAdapter
  15. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  16. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  17. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  18. var localBuffer : Array[Byte]

    Definition Classes
    GenericOutputAdapter
  19. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  22. val o : OutputStream

    Attributes
    protected
  23. val output : OutputStream

    Attributes
    protected
    Definition Classes
    GenericOutputAdapter
  24. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  25. def toString (): String

    Definition Classes
    AnyRef → Any
  26. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  27. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. def write (out: OutputStream, array: Array[Byte], offset: Int, length: Int): Unit

  30. def write (buffer: ByteBuffer): Promise[Unit]

    Write data to stream.

    Write data to stream. Note that the data will be written completely. If data could not be completely processed, it should be saved in stream's buffer.

    buffer

    a buffer with data to write

    returns

    a promise that resolves when data finished writing

    Definition Classes
    GenericOutputAdapterAOutput

Inherited from GenericOutputAdapter[OutputStream, ByteBuffer, Array[Byte]]

Inherited from AOutput[ByteBuffer]

Inherited from ACloseable

Inherited from Asynchronous

Inherited from AnyRef

Inherited from Any