License
Leave feedback
On this page
Inheritance: java.lang.Object
public class License
The License class provides methods to set and apply licenses for GroupDocs.Comparison.
It allows you to enable or disable specific features of the library based on the license applied.
- More about GroupDocs.Comparison licensing: Evaluation Limitations and Licensing
Example usage:
final License license = new License();
license.setLicense("GroupDocs.License.lic");
| Constructor | Description |
|---|---|
| License() |
| Method | Description |
|---|---|
| isValidLicense() | Gets a value indicating whether license was set or no. |
| setLicense(InputStream licenseStream) | Sets a license to Comparison using input stream. |
| setLicense(Path licensePath) | Sets a license to Comparison using license file path. |
| setLicense(String licensePath) | Sets a license to Comparison using license file path. |
public License()
public static boolean isValidLicense()
Gets a value indicating whether license was set or no.
Returns: boolean - true if license was set successfully, otherwise false
public final void setLicense(InputStream licenseStream)
Sets a license to Comparison using input stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| licenseStream | java.io.InputStream | The license stream, null unsets license |
public final void setLicense(Path licensePath)
Sets a license to Comparison using license file path.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| licensePath | java.nio.file.Path | The license file path |
public final void setLicense(String licensePath)
Sets a license to Comparison using license file path.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| licensePath | java.lang.String | The license file 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.