Package org.odftoolkit.odfdom
Class JarManifest
- java.lang.Object
-
- org.odftoolkit.odfdom.JarManifest
-
public class JarManifest extends Object
Provides metadata about the ODFDOM library as build date, version number. Its main() method is the start method of the library, enabling the access of versioning methods from command line: "java -jar odfdom-java--jar-with-dependencies.jar".
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetOdfdomBuildDate()Return the date when ODFDOM had been buildstatic StringgetOdfdomName()Return the name of ODFDOM;static StringgetOdfdomSupportedOdfVersion()Returns the version of the OpenDocument specification covered by the ODFDOM library (ie.static StringgetOdfdomTitle()Returns the ODFDOM library titlestatic StringgetOdfdomVersion()Return the version of the ODFDOM library (ie.static StringgetOdfdomWebsite()Return the website of the ODFDOM library (ie.static voidmain(String[] args)The main method is meant to be called when the JAR is being executed, e.g."java -jar odfdom-java-1.0.0-SNAPSHOT-jar-with-dependencies.jar" and provides versioning information:
-
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException, Exception
The main method is meant to be called when the JAR is being executed, e.g."java -jar odfdom-java-1.0.0-SNAPSHOT-jar-with-dependencies.jar" and provides versioning information:odfdom 1.0.0-SNAPSHOT (build 2019-07-11T12:38:27) from https://odftoolkit.org/odfdom/ supporting ODF 1.2
Allowing version access from the JAR without the need to unzip the JAR nor naming the JAR (requiring the change of classpath for every version due to JAR naming change).
- Parameters:
args- a relative path to the ODT that should be transformed to JSON changes- Throws:
IOExceptionException
-
getOdfdomName
public static String getOdfdomName()
Return the name of ODFDOM;- Returns:
- the ODFDOM library name
-
getOdfdomTitle
public static String getOdfdomTitle()
Returns the ODFDOM library title- Returns:
- A string containing both the name and the version of the ODFDOM library.
-
getOdfdomVersion
public static String getOdfdomVersion()
Return the version of the ODFDOM library (ie. odfdom.jar)- Returns:
- the ODFDOM library version
-
getOdfdomWebsite
public static String getOdfdomWebsite()
Return the website of the ODFDOM library (ie. odfdom.jar)- Returns:
- the ODFDOM library website
-
getOdfdomBuildDate
public static String getOdfdomBuildDate()
Return the date when ODFDOM had been build- Returns:
- the date of the build formated as "yyyy-MM-dd'T'HH:mm:ss".
-
getOdfdomSupportedOdfVersion
public static String getOdfdomSupportedOdfVersion()
Returns the version of the OpenDocument specification covered by the ODFDOM library (ie. odfdom.jar)- Returns:
- the supported ODF version number
-
-