Packages

c

io.scalajs.nodejs.stream.IReadable

ReadableExtesions

implicit final class ReadableExtesions extends AnyVal

Readable Events

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReadableExtesions
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ReadableExtesions(readable: IReadable)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def iteratorAsBuffer: Iterator[Buffer]
    Annotations
    @inline()
  8. def iteratorAsObject: Iterator[Any]
    Annotations
    @inline()
  9. def iteratorAsString: Iterator[String]
    Annotations
    @inline()
  10. def onClose(listener: () => Any): readable.type

    Emitted when the stream and any of its underlying resources (a file descriptor, for example) have been closed.

    Emitted when the stream and any of its underlying resources (a file descriptor, for example) have been closed. The event indicates that no more events will be emitted, and no further computation will occur.

    Annotations
    @inline()
  11. def onData[A](listener: (A) => Any): readable.type

    Attaching a 'data' event listener to a stream that has not been explicitly paused will switch the stream into flowing mode.

    Attaching a 'data' event listener to a stream that has not been explicitly paused will switch the stream into flowing mode. Data will then be passed as soon as it is available.

    Annotations
    @inline()
  12. def onEnd(listener: () => Any): readable.type

    This event fires when there will be no more data to read.

    This event fires when there will be no more data to read. Note that the 'end' event will not fire unless the data is completely consumed. This can be done by switching into flowing mode, or by calling stream.read() repeatedly until you get to the end.

    Annotations
    @inline()
  13. def onError(listener: (Error) => Any): readable.type

    Emitted if there was an error when writing or piping data.

    Emitted if there was an error when writing or piping data.

    Annotations
    @inline()
  14. def onReadable(listener: () => Any): readable.type

    When a chunk of data can be read from the stream, it will emit a 'readable' event.

    When a chunk of data can be read from the stream, it will emit a 'readable' event. In some cases, listening for a 'readable' event will cause some data to be read into the internal buffer from the underlying system, if it hadn't already.

    Annotations
    @inline()
  15. def readAsBufferOption(): Option[Buffer]
    Annotations
    @inline()
  16. def readAsObjectOption(): Option[Any]
    Annotations
    @inline()
  17. def readAsStringOption(): Option[String]
    Annotations
    @inline()
  18. val readable: IReadable
  19. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped