License
Contents
[
Hide
]
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 licensing: GroupDocs Licensing FAQ
- More about GroupDocs.Comparison licensing: Evaluation Limitations and Licensing
Example usage:
final License license = new License();
license.setLicense("GroupDocs.License.lic");
Constructors
Constructor | Description |
---|---|
License() |
Methods
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. |
License()
public License()
isValidLicense()
public static boolean isValidLicense()
Gets a value indicating whether license was set or no.
Returns: boolean - true if license was set successfully, otherwise false
setLicense(InputStream licenseStream)
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 |
setLicense(Path licensePath)
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 |
setLicense(String licensePath)
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 |