com.aspose.ocr

## Class License

- java.lang.Object
- - com.aspose.ocr.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 FileNotFoundException,
                                 AsposeLicenseException

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

    - #### setLicense

          public void setLicense(InputStream stream)
                          throws AsposeLicenseException

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

    - #### setLicense

          public void setLicense(String licenseName)
                          throws AsposeLicenseException

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

Copyright © 2014. All rights reserved.