public final void setLicense(InputStream licenseStream)
Licenses the component.
The following example demonstrates how to set a license
passing Stream of the license file.
using (InputStream licenseStream = new FileInputStream("LicenseFile.lic"))
{
com.groupdocs.editor.License lic = new com.groupdocs.editor.License();
lic.setLicense(licenseStream);
}
Parameters:
Parameter
Type
Description
licenseStream
java.io.InputStream
The license stream.
setLicense(String licensePath)
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.Editor.lic";
com.groupdocs.editor.License lic = new com.groupdocs.editor.License();
lic.setLicense(licensePath);
Parameters:
Parameter
Type
Description
licensePath
java.lang.String
The license path.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.