supportsReading
Class: Simulink.data.adapters.BaseMatlabFileAdapter
Namespace: Simulink.data.adapters
Syntax
tf = supportsReading(adapterObj,sourceFile)
Description
checks if the external source file has read attributes. The default implementation uses the
tf
= supportsReading(adapterObj
,sourceFile
)isSourceValid
method to check that the file exists and is in the correct format, then checks that the file
has read attributes. You can override this method so that multiple adapters can read the same
file type but with different headers.
Custom file adapters must define behavior for the getAdapterName
,
getSupportedExtensions
, and getData
methods.
In addition, you can choose to override the isSourceValid
,
supportsReading
, getSectionNames
,
getCurrentChecksum
, open
, and close
methods.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2022b