public class License extends Object
| Constructor and Description |
|---|
License()
Initializes a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid() |
static void |
setLicense(File licenseFile)
Licenses the component.
|
static void |
setLicense(InputStream stream)
Licenses the component.
|
static void |
setLicense(String licenseFilePath)
Licenses the component.
|
public static boolean isValid()
public static void setLicense(String licenseFilePath) throws Exception
licenseFilePath - Can be a full or short file name
Use an empty string to switch to evaluation mode.Exception - if file not found.public static void setLicense(InputStream stream) throws Exception
stream - A stream that contains the license.Exception - if file not found.Copyright © 2025 Aspose. All rights reserved.