com.aspose.email
Class License

java.lang.Object
  extended by com.aspose.email.License

public class License
extends Object

Provides methods to license the component.


Constructor Summary
License()
          Initializes a new instance of this class.
 
Method Summary
 void setLicense(InputStream stream)
          Licenses the component.
 void setLicense(String licenseName)
          Licenses the component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

License

public License()
Initializes a new instance of this class.

Method Detail

setLicense

public void setLicense(String licenseName)
                throws Exception
Licenses the component.

Parameters:
licenseName - Can be a full or short file name Use an empty string to switch to evaluation mode.
Throws:
Exception

setLicense

public void setLicense(InputStream stream)
                throws Exception
Licenses the component.

Parameters:
stream - A stream that contains the license.
Throws:
Exception


Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.