Dart API Referencedart:ioListInputStream

ListInputStream Interface

ListInputStream makes it possible to use the InputStream interface to stream over data that is received in chunks as lists of integers.

When a new list of integers is received it can be written to the ListInputStream using the write method. The markEndOfStream method must be called when the last data has been written to the ListInputStream.

Extends

InputStream

Constructors

Code new ListInputStream() #

Create an empty ListInputStream to which data can be written using the write method.

ListInputStream();

Methods

Code void markEndOfStream() #

Notify the ListInputStream that no more data will be written to it.

void markEndOfStream();

Code void write(List<int> data) #

Write more data to be streamed over to the ListInputStream.

void write(List<int> data);