Main Content

initialize

Class: matlab.net.http.io.JSONConsumer
Namespace: matlab.net.http.io

Prepare JSONConsumer for new HTTP message

Syntax

OK = initialize(consumer)

Description

OK = initialize(consumer) initializes a JSONConsumer for a new HTTP message.

MATLAB® calls initialize to prepare this consumer for receipt of a message. This method tries to determine the charset of the data from the Content-Type in the Header property. If it cannot do so, it assumes UTF-8. This method is an overridden method of initialize.

initialize returns true if the consumer can process the data. Otherwise, it returns false.

Input Arguments

expand all

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

Attributes

Accessprotected

Version History

Introduced in R2018a

See Also