Constructor and Description |
---|
License() |
Modifier and Type | Method and Description |
---|---|
void |
setLicense(InputStream licenseStream)
Licenses the component.
|
void |
setLicense(String licensePath)
Licenses the component.
|
public final void setLicense(InputStream licenseStream)
Licenses the component.
The following example demonstrates how to set a license passing Stream of the license file.InputStream licenseStream = new FileInputStream("LicenseFile.lic") com.groupdocs.merger.License lic = new com.groupdocs.merger.License(); lic.setLicense(licenseStream);
licenseStream
- The license stream.public final void setLicense(String licensePath)
Licenses the component.
The following example demonstrates how to set a license passing a path to the license file.String licensePath = "GroupDocs.Merger.lic"; com.groupdocs.merger.License lic = new com.groupdocs.merger.License(); lic.setLicense(licensePath);
licensePath
- The license path.