Main Content

start

Class: matlab.net.http.io.StringConsumer
Package: matlab.net.http.io

Start data transfer to StringConsumer

Syntax

bufsize = start(consumer)

Description

bufsize = start(consumer) prepares consumer for receipt of data. By default, start accumulates the converted string or character vector in Response.Body.Data. This method returns [] to indicate it has no preferred buffer size.

This method is an abstract method of ContentConsumer. If you override this method, you should call the start method as well.

Input Arguments

expand all

Content consumer, specified as a matlab.net.http.io.StringConsumer object.

Attributes

Accessprotected

Examples

For an example subclassing this method, see the PricesStreamer class start method in Display Streamed Data in Figure Window.

See Also

Introduced in R2018a