com.groupdocs.conversion

## Class License

- java.lang.Object
- - com.groupdocs.conversion.License

-     public final class License
      extends Object

  Set GroupDocs.Conversion license

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `License()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static String` | `getFileNameInFolderOfAssembly(String fileName, com.aspose.ms.System.Reflection.Assembly assembly)` Gets the file name in folder of assembly.
    `static boolean` | `isValidLicense()` Gets a value indicating whether this instance is valid license.
    `static void` | `resetHandler()` Use this method for testing purpose only
    `void` | `setLicense(InputStream licenseStream)` Sets the license.
    `void` | `setLicense(String licensePath)` Sets the license.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### License

          public License()

  - ### Method Detail

    - #### resetHandler

          public static void resetHandler()

      Use this method for testing purpose only

    - #### isValidLicense

          public static boolean isValidLicense()

      Gets a value indicating whether this instance is valid license.

      Value: `true` if this instance is valid license; otherwise, `false`.
      Returns:

    - #### setLicense

          public void setLicense(InputStream licenseStream)

      Sets the license.

      Parameters:
        `licenseStream` - The license stream.

    - #### setLicense

          public void setLicense(String licensePath)

      Sets the license.

      Parameters:
        `licensePath` - The license path.

    - #### getFileNameInFolderOfAssembly

          public static String getFileNameInFolderOfAssembly(String fileName,
                                             com.aspose.ms.System.Reflection.Assembly assembly)

      Gets the file name in folder of assembly.

      Parameters:
        `fileName` - Name of the file.
        `assembly` - The assembly.
      Returns:
        System.String.

Copyright © 2017. All rights reserved.