License
Contents
[
Hide
]
Inheritance: java.lang.Object
public class License
Provides methods to license the component.
Constructors
Constructor | Description |
---|---|
License() | Initializes a new instance of this class. |
Methods
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. |
License()
public License()
Initializes a new instance of this class.
setLicense(String licenseName)
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. |
setLicense(InputStream stream)
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. |
isLicensed()
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.