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(
initializes a
consumer
)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
Attributes
Access | protected |
Version History
Introduced in R2018a