Methods

This section describes the methods associated with the Streams API.

In this section

Topic Description

cancel

The cancel method signals that the reader no longer has need of the stream, thus throwing away any queued data.

cancel

The cancel method initiates the cancel method of the readable steam.

getReader

The getReader method creates a stream reader and locks the stream to the new reader.

read

The read method allows access to the next chunk from the stream’s queue.

releaseLock

The releaseLock method releases the reader's lock on the corresponding stream.