org.odftoolkit.odfdom
Class JarManifest

java.lang.Object
  extended by 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.jar".


Method Summary
static String getOdfdomBuildDate()
          Return the date when ODFDOM had been build
static String getOdfdomName()
          Return the name of ODFDOM;
static String getOdfdomSupportedOdfVersion()
          Returns the version of the OpenDocument specification covered by the ODFDOM library (ie.
static String getOdfdomTitle()
          Returns the ODFDOM library title
static String getOdfdomVersion()
          Return the version of the ODFDOM library (ie.
static String getOdfdomWebsite()
          Return the website of the ODFDOM library (ie.
static void main(String[] args)
          The main method is meant to be called when the JAR is being executed, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
                 throws IOException
The main method is meant to be called when the JAR is being executed, e.g. "java -jar odfdom.jar" and provides versioning information: odfdom 0.9-SNAPSHOT (build 20100701-1729) from http://odftoolkit.org 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).

Throws:
IOException

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


Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.