com.spire.doc.license
Class LicenseProvider

java.lang.Object
  extended by com.spire.doc.license.LicenseProvider

public class LicenseProvider
extends java.lang.Object

Class Spire.Doc.LicenseProvider.


Constructor Summary
LicenseProvider()
           
 
Method Summary
static void clearLicense()
          Clear all cached license.
static void loadLicense()
          Load the license provided by current setting to the license cache.
static void setLicense(java.io.InputStream licenseFileStream)
          Provides a license by a license stream, which will be used for loading license.
static void setLicense(java.lang.String licenseFileFullPath)
          Provides a license by a license file path, which will be used for loading license.
static void setLicenseFileName(java.lang.String licenseFileName)
          Sets the license file name, which will be used for loading license.
static void setLicenseKey(java.lang.String key)
          Provides a license by a license key, which will be used for loading license.
 

Constructor Detail

LicenseProvider

public LicenseProvider()
Method Detail

setLicense

public static void setLicense(java.lang.String licenseFileFullPath)
Provides a license by a license file path, which will be used for loading license.

Parameters:
licenseFileFullPath - License file full path.

setLicense

public static void setLicense(java.io.InputStream licenseFileStream)
Provides a license by a license stream, which will be used for loading license.

Parameters:
licenseFileStream - License data stream.

setLicenseKey

public static void setLicenseKey(java.lang.String key)
Provides a license by a license key, which will be used for loading license.

Parameters:
key - The value of the Key attribute of the element License of you license xml file.

setLicenseFileName

public static void setLicenseFileName(java.lang.String licenseFileName)
Sets the license file name, which will be used for loading license.

Parameters:
licenseFileName - License file name.

clearLicense

public static void clearLicense()
Clear all cached license.


loadLicense

public static void loadLicense()
Load the license provided by current setting to the license cache.