com.aspose.slides
Class LicenseController

java.lang.Object
  extended by com.aspose.slides.LicenseController

public class LicenseController
extends java.lang.Object


Field Summary
static java.lang.String EVALUATION_LIMITATION_TEXT
           
static java.lang.String EVALUATION_LIMITATION_TRANCATED_TEXT_INFO
           
static int EVALUATION_LIMITATION_TRANCATED_TEXT_LENGTH
           
 
Constructor Summary
LicenseController()
           
 
Method Summary
static java.lang.String getReleaseDate()
           
static java.lang.String getTitle()
           
static java.lang.String getTitleJR()
           
static java.lang.String getTruncatedText(java.lang.String originalText)
          Truncates text due to evaluation version limitation.
static java.lang.String getVendor()
           
static java.lang.String getVersion()
           
static boolean isEval()
          Call this from your component code to check if running evaluation version or not.
 void setLicense(java.io.InputStream stream)
          Licenses the component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVALUATION_LIMITATION_TEXT

public static final java.lang.String EVALUATION_LIMITATION_TEXT
See Also:
Constant Field Values

EVALUATION_LIMITATION_TRANCATED_TEXT_LENGTH

public static final int EVALUATION_LIMITATION_TRANCATED_TEXT_LENGTH
See Also:
Constant Field Values

EVALUATION_LIMITATION_TRANCATED_TEXT_INFO

public static final java.lang.String EVALUATION_LIMITATION_TRANCATED_TEXT_INFO
See Also:
Constant Field Values
Constructor Detail

LicenseController

public LicenseController()
Method Detail

setLicense

public void setLicense(java.io.InputStream stream)
                throws AsposeLicenseException
Licenses the component.

Parameters:
stream - A stream that contains the license. Use null to switch to evaluation mode.
Throws:
com.aspose.slides.license.AsposeLicenseException
AsposeLicenseException

isEval

public static boolean isEval()
Call this from your component code to check if running evaluation version or not.

Returns:

getTruncatedText

public static java.lang.String getTruncatedText(java.lang.String originalText)
Truncates text due to evaluation version limitation. Truncated text should contain no more than 5 first characters from the original text and evaluation information text.

Parameters:
originalText -
Returns:
Truncated text in evaluation mode. Original text in licensed mode.

getVersion

public static java.lang.String getVersion()
Returns:
the version of a product.

getVendor

public static java.lang.String getVendor()
Returns:
the vendor of a product.

getTitle

public static java.lang.String getTitle()

getTitleJR

public static java.lang.String getTitleJR()

getReleaseDate

public static java.lang.String getReleaseDate()