com.groupdocs.merger.licensing

Class License



  • public class License
    extends Object

    Provides methods to license the component.

    • Constructor Detail

      • License

        public License()
    • Method Detail

      • setLicense

        public void setLicense(InputStream licenseStream)

        licenses the component.


         The following example demonstrates how to set a license
         passing Stream of the license file.
         
         using (InputStream licenseStream = new FileInputStream("LicenseFile.lic"))
         {
             com.groupdocs.merger.licensing.License lic = new com.groupdocs.merger.licensing.License();
             lic.setLicense(licenseStream);
         }
         

        Parameters:
        licenseStream - The license stream.
      • setLicense

        public void setLicense(String licensePath)

        licenses the component.


         The following example demonstrates how to set a license 
         passing a path to the license file.
         
         string licensePath = "GroupDocs.Merger.lic";
         com.groupdocs.merger.licensing.License lic = new com.groupdocs.merger.licensing.License();
         lic.setLicense(licensePath);
         

        Parameters:
        licensePath - The license path.