Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Create

        public Create()
    • 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 the License.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