public class License extends Object
It allows you to enable or disable specific features of the library based on the license applied.
Example usage:
final License license = new License();
license.setLicense("GroupDocs.License.lic");
| Constructor and Description |
|---|
License() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValidLicense()
Gets a value indicating whether license was set or no.
|
void |
setLicense(InputStream licenseStream)
Sets a license to Comparison using input stream.
|
void |
setLicense(Path licensePath)
Sets a license to Comparison using license file path.
|
void |
setLicense(String licensePath)
Sets a license to Comparison using license file path.
|
public static boolean isValidLicense()
Gets a value indicating whether license was set or no.
public final void setLicense(InputStream licenseStream)
Sets a license to Comparison using input stream.
licenseStream - The license stream, null unsets licensepublic final void setLicense(Path licensePath)
Sets a license to Comparison using license file path.
licensePath - The license file pathIllegalArgumentException - if licensePath is nullpublic final void setLicense(String licensePath)
Sets a license to Comparison using license file path.
licensePath - The license file pathIllegalArgumentException - if licensePath is nullCopyright © 2024. All rights reserved.