|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.aspose.barcode.License
public class License
Provides methods to license the component.
In this example, an attempt will be made to find a license file named Aspose.Words.lic in the folder that contains the component jar file:
License license = new License();
license.setLicense("Aspose.Total.lic");
| Constructor Summary | |
|---|---|
License()
Initializes a new instance of this class. |
|
| Method Summary | |
|---|---|
void |
setLicense(java.io.InputStream stream)
Licenses the component. |
void |
setLicense(java.lang.String licenseName)
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 Aspose.Words.lic in the folder that contains the component jar file:
License license = new License();
license.setLicense("Aspose.Total.lic");
| Method Detail |
|---|
public void setLicense(java.lang.String licenseName)
throws java.lang.Exception,
java.net.URISyntaxException
Tries to find the license in the following locations:
1. Explicit path.
2. The folder of the component jar file.
In this example, an attempt will be made to find a license file named Aspose.Words.lic in the folder that contains the component jar file:
License license = new License();
license.setLicense("Aspose.Words.lic");
licenseName - Can be a full or short name of license file.
Use an empty String to switch to evaluation mode.
java.lang.Exception
java.net.URISyntaxException
public void setLicense(java.io.InputStream stream)
throws java.lang.Exception
Use this method to load a license from a stream.
Example:
License license = new License(); license.setLicense(myStream);
stream - A stream that contains the license. Use null to switch to evaluation mode.
java.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||