Package javax0.license3j
Class License.Create
- java.lang.Object
-
- javax0.license3j.License.Create
-
- Enclosing class:
- License
public static class License.Create extends java.lang.Object
Inner class containing factory methods to create a license object from various sources.
-
-
Constructor Summary
Constructors Constructor Description Create()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static License
from(byte[] array)
Create a license from the binary byte array representation.static License
from(java.lang.String text)
Get a license with the features from the string.
-
-
-
Method Detail
-
from
public static License from(byte[] array)
Create a license from the binary byte array representation.- Parameters:
array
- the binary byte array representation of the license- Returns:
- the license object
-
from
public static License from(java.lang.String text)
Get a license with the features from the string. The format of the string is the same as the one that was generated by theLicense.toString()
.The syntax is more relaxed than in case of
License.toString()
, however. The spaces at the start of the lines, before the : and the type name and the = sign are removed. In case of multi-line string the spaces before and after the end string are removed.- Parameters:
text
- the license in String format- Returns:
- the license
-
-