License

Inheritance: java.lang.Object

public final class License

Represents GroupDocs.Metadata license. License class should be applied once per AppDomain.


This example demonstrates how to setup a license.
     
 // initialize License class
 License license = new License();
 // set path to .lic file
 license.SetLicense(@"C:\\GroupDocs.Metadata.lic");

Constructors

Constructor Description
License()

Methods

Method Description
setLicense(String licensePath) Licenses the component.
setLicense(InputStream licenseStream) Licenses the component.

License()

public License()

setLicense(String licensePath)

public final void setLicense(String licensePath)

Licenses the component.


This example demonstrates how to setup license.
     
 // initialize License class
 License license = new License();
 // set path to .lic file
 license.SetLicense(@"C:\\GroupDocs.Metadata.lic");

Parameters:

Parameter Type Description
licensePath java.lang.String The absolute path to a license file.

setLicense(InputStream licenseStream)

public final void setLicense(InputStream licenseStream)

Licenses the component.

Parameters:

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