License
Contents
[
Hide
]Inheritance: java.lang.Object
public class License
License class for set and check license.
Constructors
Constructor | Description |
---|---|
License() |
Methods
Method | Description |
---|---|
setLicense(InputStream stream) | Set license for library. |
setLicense(FileInputStream stream) | Set license for library. |
setLicense(String filename) | Set license for library. |
isValid() | Check license. |
License()
public License()
setLicense(InputStream stream)
public static void setLicense(InputStream stream)
Set license for library.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | InputStream with license. |
setLicense(FileInputStream stream)
public static void setLicense(FileInputStream stream)
Set license for library.
Parameters:
Parameter | Type | Description |
---|---|---|
stream | java.io.FileInputStream | FileInputStream with license. |
setLicense(String filename)
public static void setLicense(String filename)
Set license for library.
Parameters:
Parameter | Type | Description |
---|---|---|
filename | java.lang.String | Path to xml file with license. |
isValid()
public static boolean isValid()
Check license.
Returns: boolean - Boolean value license is valid.