com.aspose.barcode

Class License



  • public class License
    extends Object
    Provides methods to license the component.
    • Constructor Detail

      • License

        public License()
        Initializes a new instance of this class.
    • Method Detail

      • setLicense

        public void setLicense(String licenseName)
                        throws Exception
        Licenses the component.
        Parameters:
        licenseName - Can be a full or short file name Use an empty string to switch to evaluation mode.
        Throws:
        Exception
      • setLicense

        public void setLicense(InputStream stream)
                        throws Exception
        Licenses the component.
        Parameters:
        stream - A stream that contains the license.
        Throws:
        Exception
      • setLicense

        public void setLicense(File licenseFile)
                        throws Exception
        Licenses the component.
        Parameters:
        licenseFile - representation of file pathname
        Throws:
        Exception