This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

getData

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

Next buffer of data to send in HTTP request message from FileProvider

Syntax

[data,stop] = getData(provider,length)

Description

[data,stop] = getData(provider,length) returns the next buffer of data from the file. This method is an overridden method of ContentProvider.getData.

Input Arguments

expand all

Content provider, specified as a matlab.net.http.io.FileProvider object.

Length of data that the provider should return, specified as double. For more information, see the length argument in ContentProvider.getData.

Output Arguments

expand all

Next buffer of data, returned as a uint8 vector or empty.

Indicate whether to end transmission, returned as a logical that the provider must set. getData sets stop to true if the end of file has been reached or FileSize bytes have been returned, whichever comes first.

Attributes

Accesspublic

Introduced in R2018a