net.sf.asyncobjects.asyncscala.nio

RichCharInput

class RichCharInput extends RichInput[CharBuffer, Array[Char]]

Linear Supertypes
RichInput[CharBuffer, Array[Char]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. RichCharInput
  2. RichInput
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichCharInput (stream: AInput[CharBuffer])

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 asInstanceOf [T0] : T0

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def content : Promise[String]

    Read the entire input and covert it to string.

    Read the entire input and covert it to string. The method closes underlying stream.

    returns

    a promise for string that is the entire stream

  9. def copyTo (out: AOutput[CharBuffer], buffer: CharBuffer, autoFlush: Boolean): Promise[Long]

    Forward the stream sequentially

    Forward the stream sequentially

    out

    the output stream

    buffer

    the buffer to use (the buffer must be ready for a read operation)

    autoFlush

    if true, the output is flushed after each operation (the completion of the operation is not waited)

    returns

    a promise that resolves to amount of forwarded bytes if the operation is successful

    Definition Classes
    RichInput
  10. def copyTo (out: AOutput[CharBuffer], buffer: CharBuffer): Promise[Long]

    Forward the stream sequentially

    Forward the stream sequentially

    out

    the output stream

    buffer

    the buffer to use

    returns

    a promise that resolves to amount of forwarded bytes if the operation is successful

    Definition Classes
    RichInput
  11. def copyTo2 (out: AOutput[CharBuffer], buffer1: CharBuffer, buffer2: CharBuffer): Promise[Long]

    The two buffer version of forward operation.

    The two buffer version of forward operation. While one buffer is used for reading, other could be used for writing.

    out

    the output

    buffer1

    the first buffer

    buffer2

    the second buffer

    Definition Classes
    RichInput
  12. def discard (buffer: CharBuffer): Promise[Long]

    Discard the stream sequentially

    Discard the stream sequentially

    buffer

    the buffer to use

    returns

    a promise that resolves to amount of discarded buffer elements if the operation is successful

    Definition Classes
    RichInput
  13. def eq (arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def getClass (): java.lang.Class[_]

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

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

    Attributes
    final
    Definition Classes
    Any
  19. def lines : AStream[String]

    Read stream as lines separated by Unicode new line characters.

    Read stream as lines separated by Unicode new line characters. <u>

    • LF: Line Feed, U+000A
    • VT: Vertical Tab, U+000B
    • FF: Form Feed, U+000C
    • CR: Carriage Return, U+000D
    • CR+LF: CR (U+000D) followed by LF (U+000A)
    • NEL: Next Line, U+0085
    • LS: Line Separator, U+2028
    • PS: Paragraph Separator, U+2029

    Stream automatically closes underlying input on eof or error.

    returns

    stream of lines

  20. def ne (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  23. def read (data: Array[Char]): Promise[Int]

    Array version of read operation

    Array version of read operation

    data

    the destination array

    returns

    the promise for amount of bytes read

    Definition Classes
    RichInput
  24. def read (data: Array[Char], offset: Int, length: Int): Promise[Int]

    Array version of read operation

    Array version of read operation

    data

    the destination array

    offset

    the start offset

    length

    the length of the array

    returns

    the promise for amount of bytes read

    Definition Classes
    RichInput
  25. def readFully (buffer: CharBuffer): Promise[Int]

    Read buffer fully, throwing exceptions if stream does not have enough data

    Read buffer fully, throwing exceptions if stream does not have enough data

    buffer

    the buffer to fill until buffer.remaining() == 0

    Definition Classes
    RichInput
  26. def synchronized [T0] (arg0: ⇒ T0): T0

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from RichInput[CharBuffer, Array[Char]]

Inherited from AnyRef

Inherited from Any