com.aspose.omr

## Class License

- java.lang.Object
- - com.aspose.omr.License

-     public class License
      extends Object

  Provides methods to license the component.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `License()` Initializes a new instance of this class.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setLicense(File licenseFile)` Licenses the component.
    `void` | `setLicense(InputStream stream)` Licenses the component.
    `void` | `setLicense(String licenseName)` Licenses the component.

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

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

- - ### Constructor Detail

    - #### License

          public License()

      Initializes a new instance of this class.

  - ### Method Detail

    - #### setLicense

          public void setLicense(File licenseFile)
                          throws Exception

      Licenses the component.
      Parameters:
        `licenseFile` - representation of file pathname
      Throws:
        `Exception`

    - #### setLicense

          public void setLicense(InputStream stream)
                          throws Exception

      Licenses the component.
      Parameters:
        `stream` - A stream that contains the license.
      Throws:
        `Exception`

    - #### setLicense

          public void setLicense(String licenseName)
                          throws Exception

      Licenses the component.
      Parameters:
        `licenseName` - Can be a full or short file name Use an empty string to switch to evaluation mode.
      Throws:
        `Exception`

Copyright © 2014. All rights reserved.