initialize
Class:matlab.net.http.io.StringConsumer
Package:matlab.net.http.io
Prepare StringConsumer for new HTTP message
Syntax
OK = initialize(consumer)
Description
prepares thisOK
= initialize(consumer
)StringConsumer
for receipt of a message.
MATLAB®调用这个方法is an overridden method ofinitialize
.
initialize
returnstrue
if one of the following occurs. Otherwise, it returnsfalse
.
Response.Status
isOK
and theCharset
property is not empty.ContentType is set to a
MediaType
with a known or default charset.
You can process a message with an emptyCharsetproperty or with an unknownmatlab.net.http.MediaType
. To do this, setCharset
after creating the consumer or write a subclass that overrides this method to setCharset
before invokinginitialize
.
See theStringConsumer
constructor for a list of known default charsets.
Input Arguments
Attributes
Access |
protected |