Package com.itextpdf.text
Class Version
- java.lang.Object
-
- com.itextpdf.text.Version
-
public final class Version extends java.lang.ObjectThis class contains version information about iText. DO NOT CHANGE THE VERSION INFORMATION WITHOUT PERMISSION OF THE COPYRIGHT HOLDERS OF ITEXT. Changing the version makes it extremely difficult to debug an application. Also, the nature of open source software is that you honor the copyright of the original creators of the software.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAGPLString that will indicate if the AGPL version is used.private java.lang.StringiTextThis String contains the name of the product.private java.lang.StringiTextVersionThis String contains the iText version as shown in the producer line.private java.lang.StringkeyThe license key.private java.lang.StringreleaseThis String contains the version number of this iText release.private static java.lang.ObjectstaticLockprivate static VersionversionThe iText version instance.
-
Constructor Summary
Constructors Constructor Description Version()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static VersionatomicSetVersion(Version newVersion)private static booleandependsOnTheOldLicense()static VersiongetInstance()Gets an instance of the iText version that is currently used.java.lang.StringgetKey()Returns a license key if one was provided, or null if not.java.lang.StringgetProduct()Gets the product name.java.lang.StringgetRelease()Gets the release number.java.lang.StringgetVersion()Returns the iText version as shown in the producer line.static booleanisAGPLVersion()Checks if the AGPL version is used.
-
-
-
Field Detail
-
staticLock
private static final java.lang.Object staticLock
-
AGPL
public static java.lang.String AGPL
String that will indicate if the AGPL version is used.
-
version
private static volatile Version version
The iText version instance.
-
iText
private final java.lang.String iText
This String contains the name of the product. iText is a registered trademark by iText Group NV. Please don't change this constant.- See Also:
- Constant Field Values
-
release
private final java.lang.String release
This String contains the version number of this iText release. For debugging purposes, we request you NOT to change this constant.- See Also:
- Constant Field Values
-
iTextVersion
private java.lang.String iTextVersion
This String contains the iText version as shown in the producer line. iText is a product developed by iText Group NV. iText Group requests that you retain the iText producer line in every PDF that is created or manipulated using iText.
-
key
private java.lang.String key
The license key.
-
-
Method Detail
-
getInstance
public static Version getInstance()
Gets an instance of the iText version that is currently used. Note that iText Group requests that you retain the iText producer line in every PDF that is created or manipulated using iText.
-
dependsOnTheOldLicense
private static boolean dependsOnTheOldLicense()
-
getProduct
public java.lang.String getProduct()
Gets the product name. iText Group NV requests that you retain the iText producer line in every PDF that is created or manipulated using iText.- Returns:
- the product name
-
getRelease
public java.lang.String getRelease()
Gets the release number. iText Group NV requests that you retain the iText producer line in every PDF that is created or manipulated using iText.- Returns:
- the release number
-
getVersion
public java.lang.String getVersion()
Returns the iText version as shown in the producer line. iText is a product developed by iText Group NV. iText Group requests that you retain the iText producer line in every PDF that is created or manipulated using iText.- Returns:
- iText version
-
getKey
public java.lang.String getKey()
Returns a license key if one was provided, or null if not.- Returns:
- a license key.
-
isAGPLVersion
public static boolean isAGPLVersion()
Checks if the AGPL version is used.- Returns:
- returns true if the AGPL version is used.
-
-