License

Inheritance: java.lang.Object

public final class License

Provides methods to license the component. Learn more about licensing here .

Learn moreMore about licensing: GroupDocs Licensing FAQMore about GroupDocs.Conversion licensing: Evaluation Limitations and Licensing

Constructors

Constructor Description
License()

Methods

Method Description
isLicensed() Returns true if a valid license has been applied; false if the component is running in evaluation mode.
setLicense(InputStream licenseStream)
setLicense(System.IO.Stream licenseStream) Licenses the component.
setLicense(String licensePath) Licenses the component.
resetLicense()

License()

public License()

isLicensed()

public boolean isLicensed()

Returns true if a valid license has been applied; false if the component is running in evaluation mode.

Returns: boolean

setLicense(InputStream licenseStream)

public final void setLicense(InputStream licenseStream)

Parameters:

Parameter Type Description
licenseStream java.io.InputStream

setLicense(System.IO.Stream licenseStream)

public final void setLicense(System.IO.Stream licenseStream)

Licenses the component.


The following example demonstrates how to set a license
 passing Stream of the license file.
 
 using (FileStream licenseStream = new FileStream("LicenseFile.lic", FileMode.Open))
 {
     GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
     lic.SetLicense(licenseStream);
 }

Parameters:

Parameter Type Description
licenseStream com.aspose.ms.System.IO.Stream The license stream.

setLicense(String licensePath)

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.Conversion.lic";
 GroupDocs.Conversion.License lic = new GroupDocs.Conversion.License();
 lic.SetLicense(licensePath);

Parameters:

Parameter Type Description
licensePath java.lang.String The license path.

resetLicense()

public static void resetLicense()