com.groupdocs.watermark.legacy

Interfaces

Classes

Exceptions

com.groupdocs.watermark.legacy

Class License



  • public final class License
    extends Object

    Provides methods to license the component.

    Lean more

    The following example demonstrates demonstrates how to setup license from the local file.

    // Initialize License class.
       License license = new License();
     
       // Set path to .lic file.
       license.setLicense("C:\\GroupDocs.Watermark.lic");
     
    • Constructor Detail

      • License

        public License()

        Initializes a new instance of the License class.

    • Method Detail

      • setLicense

        public final void setLicense(String filePath)

        Licenses the component.

        Use this method to load a license from a file.

        Parameters:
        filePath - Absolute path to license file.
      • setLicense

        public final void setLicense(InputStream stream)

        Licenses the component.

        Use this method to load a license from a stream.

        Parameters:
        stream - License stream.