public final class License extends Object
Provides methods to license the component.
Lean more
The following example demonstrates demonstrates how to setup license from the local file.
// Initialize License class. License license = new License(); // Set path to .lic file. license.setLicense("C:\\GroupDocs.Watermark.lic");
Constructor and Description |
---|
License()
Initializes a new instance of the
class. |
Modifier and Type | Method and Description |
---|---|
void |
setLicense(InputStream stream)
Licenses the component.
|
void |
setLicense(String filePath)
Licenses the component.
|
public License()
Initializes a new instance of the
class.
License
public final void setLicense(String filePath)
Licenses the component.
Use this method to load a license from a file.
filePath
- Absolute path to license file.public final void setLicense(InputStream stream)
Licenses the component.
Use this method to load a license from a stream.
stream
- License stream.