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
appendBuffer
appendBuffer(data): void
Add data to the buffer. This may cause chunks to be generated, if available.
Parameters
data: string
Returns void
closeBuffer
closeBuffer(): 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
nextChunk
nextChunk(): Promise<any>
Get the next chunk that is coming from the stream.
This chunk may be null, usually indicating the last chunk in the stream.
Is the stream done? A stream is only done if all of the following are true: