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
-
Method Summary
Modifier and TypeMethodDescriptionSystem.String
Returns the license file name.System.String
Returns the license file path, if available.System.IO.Stream
Returns the license file stream, if available.System.String
Returns the machine name where EasyXLS runs.System.String
Returns the product name that is licensed with the OEM license keyvoid
setLicenseFile(System.String name)
Sets the license file name.void
setLicenseFilePath(System.String path)
Sets the license file path.void
setLicenseFromXMLString(System.String xmlString)
Sets the license file path.void
setLicenseStream(System.IO.Stream streamLicense)
Sets the license file as stream.void
setProductName(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:
getLicenseFilePath()
,setLicenseFile(System.String)
,setLicenseFilePath(System.String)
-
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:
setLicenseFilePath(System.String)
,getLicenseFile()
,getLicenseFilePath()
-
getLicenseFilePath
public System.String getLicenseFilePath()Returns the license file path, if available.- Returns:
- the license file path
- See Also:
getLicenseFile()
,setLicenseFile(System.String)
,setLicenseFilePath(System.String)
-
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:
setLicenseFile(System.String)
,getLicenseFilePath()
,getLicenseFile()
-
getLicenseStream
public System.IO.Stream getLicenseStream()Returns the license file stream, if available.- Returns:
- the license file stream
- See Also:
setLicenseStream(System.IO.Stream)
,setLicenseFile(System.String)
-
setLicenseStream
public void setLicenseStream(System.IO.Stream streamLicense)Sets the license file as stream.- Parameters:
streamLicense
- the license file as stream- See Also:
getLicenseStream()
,setLicenseFile(System.String)
-
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:
getLicenseStream()
,setLicenseStream(System.IO.Stream)
,setLicenseFile(System.String)
-
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(System.String)
-
setProductName
public void setProductName(System.String product)Sets the product name for the OEM license key- Parameters:
product
- the product name- See Also:
getProductName()
-