License

Inheritance: java.lang.Object

public final class License

Represents GroupDocs.Parser license.

This example demonstrates how to setup license.


 // Initialize License class
 License license = new License();
 // Set path to .lic file
 license.setLicense("C:\\GroupDocs.Parser.for.Java.lic");
 

Constructors

Constructor Description
License() Initializes a new instance of the License class.

Methods

Method Description
setLicense(String filePath) Licenses the component.
setLicense(InputStream stream) Licenses the component.

License()

public License()

Initializes a new instance of the License class.

setLicense(String filePath)

public final void setLicense(String filePath)

Licenses the component.

Parameters:

Parameter Type Description
filePath java.lang.String Absolute path to license file.

setLicense(InputStream stream)

public final void setLicense(InputStream stream)

Licenses the component.

Parameters:

Parameter Type Description
stream java.io.InputStream License stream.