public class LocalClassifierBase
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
isLicenseLoaded()
Checks if the license is loaded.
|
boolean |
isSettingsLoaded()
Checks if the settings are loaded.
|
void |
loadLicense(java.io.File licenseFile)
Loads the license from a file.
|
void |
loadLicense(java.lang.String license)
Loads the license from a string.
|
public void loadLicense(java.io.File licenseFile) throws InvalidArgumentException, InvalidLicenseException, java.io.FileNotFoundException, java.io.IOException, java.lang.Exception
licenseFile
- The file containing the license.InvalidArgumentException
- If licenseFile argument is null.InvalidLicenseException
- If the license has an invalid format.java.io.FileNotFoundException
- If the license file does not exist.java.io.IOException
- If there was an error reading the file.java.lang.Exception
- Generic exception.public void loadLicense(java.lang.String license) throws InvalidArgumentException, InvalidLicenseException, java.lang.Exception
license
- The string containing the license.InvalidArgumentException
- If license argument is null or empty.InvalidLicenseException
- If the license has an invalid format.java.lang.Exception
- Generic exception.public boolean isLicenseLoaded()
public boolean isSettingsLoaded()