|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.slides.License
public class License
Provides methods to license the component.
In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.
Constructor Summary | |
---|---|
License()
Initializes a new instance of this class. |
Method Summary | |
---|---|
static java.lang.String |
getVersion()
Returns version of Aspose.Slides for Java. |
boolean |
isLicensed()
Check if licence is applied to component |
void |
resetLicense()
Reset the license Use this method to reset license in component |
void |
setLicense(java.io.InputStream stream)
Licenses the component. |
void |
setLicense(java.lang.String namePath)
Licenses the component. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public License()
In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.
Method Detail |
---|
public void setLicense(java.io.InputStream stream) throws AsposeLicenseException
setLicense
in interface ILicense
stream
- A stream that contains the license. Use null to switch to
evaluation mode.
In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.
AsposeLicenseException
public void setLicense(java.lang.String namePath) throws AsposeLicenseException
setLicense
in interface ILicense
namePath
- Can be a full or short file name or name of an embedded resource.
Use an empty string to switch to evaluation mode.
In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.
AsposeLicenseException
public static java.lang.String getVersion()
public void resetLicense()
resetLicense
in interface ILicense
public boolean isLicensed()
ILicense
Check if licence is applied to component
isLicensed
in interface ILicense
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |