License

Inheritance: java.lang.Object

public class License

Provides methods to license the component.

Constructors

ConstructorDescription
License()Initializes a new instance of this class.

Methods

MethodDescription
setLicense(String licenseName)Licenses the component.
setLicense(InputStream stream)Licenses the component.
setLicense(File licenseFile)Licenses the component.

License()

public License()

Initializes a new instance of this class.

setLicense(String licenseName)

public void setLicense(String licenseName)

Licenses the component.

Parameters:

ParameterTypeDescription
licenseNamejava.lang.StringCan be a full or short file name. Use an empty string to switch to evaluation mode.

setLicense(InputStream stream)

public void setLicense(InputStream stream)

Licenses the component.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamA stream that contains the license.

setLicense(File licenseFile)

public void setLicense(File licenseFile)

Licenses the component.

Parameters:

ParameterTypeDescription
licenseFilejava.io.Filerepresentation of file pathname