Hierarchy (view full)

Constructors

Accessors

  • get streamDone(): boolean
  • Is the stream done? A stream is only done if all of the following are true:

    • There is no more data to be added to the text buffer
    • There is no more data in the text buffer
    • There are no chunks that are waiting to be consumed

    Returns boolean

Methods

  • Add data to the buffer. This may cause chunks to be generated, if available.

    Parameters

    • data: string

    Returns void

  • Indicate there is no more data that will be added to the text buffer. This should be called when all the data has been read and added to indicate that we should process everything remaining in the buffer.

    Returns void

  • Get the next chunk that is coming from the stream. This chunk may be null, usually indicating the last chunk in the stream.

    Returns Promise<any>