License
Leave feedback
On this page
Inheritance: java.lang.Object
public class License
Provides methods to license the component.
| Constructor | Description |
|---|---|
| License() | Initializes a new instance of this class. |
| Method | Description |
|---|---|
| setLicense(String licenseName) | Licenses the component. |
| setLicense(InputStream stream) | Licenses the component. |
| isLicensed() | Returns true if a valid license has been applied; false if the component is running in evaluation mode. |
public License()
Initializes a new instance of this class.
public void setLicense(String licenseName)
Licenses the component.
Tries to find the license in the following locations:
-
Explicit path.
-
The folder that contains the GroupDocs component JAR file.
-
The folder that contains the client’s calling JAR file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| licenseName | java.lang.String | Can be a full or short file name. Use an empty string to switch to evaluation mode. |
public void setLicense(InputStream stream)
Licenses the component.
Use this method to load a license from a stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.InputStream | A stream that contains the license. |
public boolean isLicensed()
Returns true if a valid license has been applied; false if the component is running in evaluation mode.
Returns: boolean - True if a valid license has been applied; false if the component is running in evaluation mode.
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.