getData
Class: matlab.net.http.io.StringProvider
Namespace: matlab.net.http.io
Next buffer of data to send in HTTP request message from StringProvider
Syntax
[data,stop] = getData(provider,length)
Description
[
returns the next buffer of data.data
,stop
] = getData(provider
,length
)
This method is an overridden method of getData
. Subclasses that generate their own buffers of
data in an overridden getData
method, but which want to take advantage
of code conversion provide by this method, should set Data
to their
buffer of data and call this superclass getData
method to convert
Data
to the desired charset. In that call, specify a value of
length
at least as large as the number of characters in the
buffer, or only part of the Data
is converted. For example:
function [data, stop] = getData(obj, length) obj.Data = generateNextBufferOfData(obj); if isempty(obj.Data) stop = true; else [data, stop] = getData(obj, strlength(obj.Data); end end
Input Arguments
Output Arguments
Attributes
Access | public |
Version History
Introduced in R2018a