Main Content

com.mathworks.toolbox.javabuilder.MWCtfExtractLocation Class

Namespace: com.mathworks.toolbox.javabuilder

Java class to manage code archive (.ctf file) extraction locations in MATLAB

Description

Declaration

public class MWCtfExtractLocation extends java.lang.Object implements MWComponentOption, java.io.Serializable

This class is used to represent the location to which the CTF will be extracted. EXTRACT_TO_CACHE object means that CTF will be extracted to cache directory at runtime. EXTRACT_TO_COMPONENT_DIR object means that CTF will be extracted to the directory where the component resides

Implemented Interfaces: MWComponentOption, java.io.Serializable

Creation

Constructors

MWCtfExtractLocation(java.io.File dir)

Used to create an instance of MWCtfExtractLocation with a specific directory where the CTF file will be extracted. The provided File object represents the directory's filesystem path. The constructor sets the directory field of the newly created instance to the File object passed as the parameter, indicating the extraction target directory.

MWCtfExtractLocation(java.lang.String dir)

Used to create an instance of MWCtfExtractLocation with a directory specified by a string representing the path. The constructor creates a new File object using the provided string path and assigns it to the directory field of the new instance. This allows users to specify the extraction directory as a string path rather than a File object.

Properties

expand all

Public Properties

This field represents a predefined MWCtfExtractLocation instance indicating that the CTF should be extracted to a cache directory at runtime.

This field represents a predefined MWCtfExtractLocation instance specifying that the CTF should be extracted to the directory where the component resides.

Methods

expand all

Version History

Introduced in R2006a