License

Inheritance: java.lang.Object, com.groupdocs.search.LicenseAssistant

public final class License extends LicenseAssistant

Represents the component license.

Learn more

The example demonstrates how to setup license.


 License license = new License();
 license.setLicense("C:\\License.lic");
 

Constructors

Constructor Description
License() Initializes a new instance of the License class.

Methods

Method Description
setLicense(String filePath) Licenses the component.
setLicense(InputStream stream) Licenses the component.

License()

public License()

Initializes a new instance of the License class.

setLicense(String filePath)

public final void setLicense(String filePath)

Licenses the component.

Parameters:

Parameter Type Description
filePath java.lang.String Absolute path to license file.

setLicense(InputStream stream)

public final void setLicense(InputStream stream)

Licenses the component.

Parameters:

Parameter Type Description
stream java.io.InputStream License stream.