Package org.odftoolkit.odfdom
Class JarManifest
java.lang.Object
org.odftoolkit.odfdom.JarManifest
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
Modifier and TypeMethodDescriptionstatic String
Return the date when ODFDOM had been buildstatic String
Return the name of ODFDOM;static String
Returns the version of the OpenDocument specification covered by the ODFDOM library (ie.static String
Returns the ODFDOM library titlestatic String
Return the version of the ODFDOM library (ie. odfdom.jar)static String
Return the website of the ODFDOM library (ie. odfdom.jar)static void
The main method is meant to be called when the JAR is being executed, e.g."
-
Method Details
-
main
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:
IOException
Exception
-
getOdfdomName
Return the name of ODFDOM;- Returns:
- the ODFDOM library name
-
getOdfdomTitle
Returns the ODFDOM library title- Returns:
- A string containing both the name and the version of the ODFDOM library.
-
getOdfdomVersion
Return the version of the ODFDOM library (ie. odfdom.jar)- Returns:
- the ODFDOM library version
-
getOdfdomWebsite
Return the website of the ODFDOM library (ie. odfdom.jar)- Returns:
- the ODFDOM library website
-
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
Returns the version of the OpenDocument specification covered by the ODFDOM library (ie. odfdom.jar)- Returns:
- the supported ODF version number
-