Namespace EasyXLS
Class License
System.Object
EasyXLS.License
public class License
extends System.Object
This class stores the license information. If no information is supplied, the license is search in default locations extends near EasyXLS.dll or as embedded resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSystem.StringReturns the license file name.System.StringReturns the license file path, if available.System.IO.StreamReturns the license file stream, if available.System.StringReturns the machine name where EasyXLS runs.System.StringReturns the product name that is licensed with the OEM license keyvoidsetLicenseFile(System.String name) Sets the license file name.voidsetLicenseFilePath(System.String path) Sets the license file path.voidsetLicenseFromXMLString(System.String xmlString) Sets the license file path.voidsetLicenseStream(System.IO.Stream streamLicense) Sets the license file as stream.voidsetProductName(System.String product) Sets the product name for the OEM license keyMethods inherited from class System.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
License
public License()Defines an instance of the license setup.
-
-
Method Details
-
getLicenseFile
public System.String getLicenseFile()Returns the license file name.- Returns:
- the license file name
- See Also:
-
setLicenseFile
public void setLicenseFile(System.String name) Sets the license file name. It does not include the full path.- Parameters:
name- the license file name- See Also:
-
getLicenseFilePath
public System.String getLicenseFilePath()Returns the license file path, if available.- Returns:
- the license file path
- See Also:
-
setLicenseFilePath
public void setLicenseFilePath(System.String path) Sets the license file path. It does not include the license file name.- Parameters:
path- the license file path- See Also:
-
getLicenseStream
public System.IO.Stream getLicenseStream()Returns the license file stream, if available.- Returns:
- the license file stream
- See Also:
-
setLicenseStream
public void setLicenseStream(System.IO.Stream streamLicense) Sets the license file as stream.- Parameters:
streamLicense- the license file as stream- See Also:
-
setLicenseFromXMLString
public void setLicenseFromXMLString(System.String xmlString) Sets the license file path. It does not include the license file name.- Parameters:
xmlString- the content of the license file inserted as string- See Also:
-
getMachineName
public System.String getMachineName()Returns the machine name where EasyXLS runs.- Returns:
- the machine name
-
getProductName
public System.String getProductName()Returns the product name that is licensed with the OEM license key- Returns:
- the product name
- See Also:
-
setProductName
public void setProductName(System.String product) Sets the product name for the OEM license key- Parameters:
product- the product name- See Also:
-