Packages

package stream

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

Type Members

  1. class Chunk extends Object

    Represents a chunk of data

    Represents a chunk of data

    Annotations
    @ScalaJSDefined() @RawJSType()
  2. class Duplex extends Object with IDuplex

    A "duplex" stream is one that is both Readable and Writable, such as a TCP socket connection.

    A "duplex" stream is one that is both Readable and Writable, such as a TCP socket connection.

    Note that stream.Duplex is an abstract class designed to be extended with an underlying implementation of the stream._read(size) and stream._write(chunk, encoding, callback) methods as you would with a Readable or Writable stream class.

    Since JavaScript doesn't have multiple prototypal inheritance, this class prototypally inherits from Readable, and then parasitically from Writable. It is thus up to the user to implement both the low-level stream._read(n) method as well as the low-level stream._write(chunk, encoding, callback) method on extension duplex classes.

    Annotations
    @RawJSType() @native() @JSImport("stream", "Duplex")
  3. class DuplexOptions extends Object

    Duplex Options

    Duplex Options

    Annotations
    @ScalaJSDefined() @RawJSType()
  4. type ErrorCallback = Function1[Error, Any]
  5. class FinishedOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()
  6. sealed trait IDuplex extends Object with IReadable with IWritable

    Duplex Interface

    Duplex Interface

    Annotations
    @RawJSType() @native()
  7. sealed trait IReadable extends Object with LegacyStream

    The Readable stream interface is the abstraction for a source of data that you are reading from.

    The Readable stream interface is the abstraction for a source of data that you are reading from. In other words, data comes out of a Readable stream.

    Annotations
    @RawJSType() @native()
    See also

    https://nodejs.org/api/stream.html#stream_readable_streams

  8. sealed trait ITransform extends Object with IDuplex
    Annotations
    @RawJSType() @native()
  9. sealed trait IWritable extends Object with LegacyStream

    The Writable stream interface is an abstraction for a destination that you are writing data to.

    The Writable stream interface is an abstraction for a destination that you are writing data to.

    Annotations
    @RawJSType() @native()
  10. trait LegacyStream extends Object with IEventEmitter
    Annotations
    @RawJSType() @native()
  11. class PassThrough extends Transform

    This is a trivial implementation of a Transform stream that simply passes the input bytes across to the output.

    This is a trivial implementation of a Transform stream that simply passes the input bytes across to the output. Its purpose is mainly for examples and testing, but there are occasionally use cases where it can come in handy as a building block for novel sorts of streams.

    Annotations
    @RawJSType() @native() @JSImport("stream", "PassThrough")
  12. class Readable extends Object with IReadable

    Custom Readable streams must call the new stream.Readable([options]) constructor and implement the readable._read() method.

    Custom Readable streams must call the new stream.Readable([options]) constructor and implement the readable._read() method. https://nodejs.org/api/stream.html#stream_implementing_a_readable_stream

    Annotations
    @RawJSType() @native() @JSImport("stream", "Readable")
  13. class ReadableOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()
  14. class ReadablePipeOptions extends Object

    Readable Pipe Options

    Readable Pipe Options

    Annotations
    @ScalaJSDefined() @RawJSType()
  15. trait ReadableState extends Object

    Readable State

    Readable State

    Annotations
    @RawJSType() @native()
  16. type Stream = |[IReadable, IWritable]
  17. implicit final class StreamModuleExtension extends AnyVal
  18. class Transform extends Object with ITransform

    Transform streams are Duplex streams where the output is in some way computed from the input.

    Transform streams are Duplex streams where the output is in some way computed from the input. They implement both the Readable and Writable interfaces.

    Annotations
    @RawJSType() @native() @JSImport("stream", "Transform")
  19. class TransformOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()
  20. type Wait = Function0[Promise[Unit]]
  21. class Writable extends Object with IWritable

    Custom Writable streams must call the new stream.Writable([options]) constructor and pass the writable._write() and/or writable._writev() method implementations via options.

    Custom Writable streams must call the new stream.Writable([options]) constructor and pass the writable._write() and/or writable._writev() method implementations via options. https://nodejs.org/api/stream.html#stream_implementing_a_writable_stream

    Annotations
    @RawJSType() @native() @JSImport("stream", "Writable")
  22. class WritableOptions extends Object
    Annotations
    @ScalaJSDefined() @RawJSType()

Value Members

  1. object IReadable

    Readable Companion

  2. object IWritable

    Writable Companion

  3. object Readable extends Object
    Annotations
    @native() @JSImport("stream", "Readable")
  4. object Stream extends Object
    Annotations
    @native() @JSImport("stream", JSImport.Namespace)

Inherited from AnyRef

Inherited from Any

Ungrouped