public static String getVersionInfo() {
    final Class<?> c = Version.class;
    final StringBuilder b = new StringBuilder();
    final Package p = c.getPackage();
    
    b.append("Class: " + c.getCanonicalName() + "; ");
    b.append("Specification Vendor: " + p.getSpecificationVendor() + "; ");
    b.append("Specification Title: " + p.getSpecificationTitle() + "; ");
    b.append("Specification Version: " + p.getSpecificationVersion() + "; ");
    b.append("Implementation Vendor: " + p.getImplementationVendor() + "; ");
    b.append("Implementation Title: " + p.getImplementationTitle() + "; ");
    b.append("Implementation Version: " + p.getImplementationVersion() + ";");
    
    return b.toString();
  }
public static String getVersionInfo() {
    final Class<?> c = Version.class;
    final StringBuilder b = new StringBuilder();
    final Package p = c.getPackage();
    
    b.append("Class: " + c.getCanonicalName() + "; ");
    b.append("Specification Vendor: " + p.getSpecificationVendor() + "; ");
    b.append("Specification Title: " + p.getSpecificationTitle() + "; ");
    b.append("Specification Version: " + p.getSpecificationVersion() + "; ");
    b.append("Implementation Vendor: " + p.getImplementationVendor() + "; ");
    b.append("Implementation Title: " + p.getImplementationTitle() + "; ");
    b.append("Implementation Version: " + p.getImplementationVersion() + ";");
    
    return b.toString();
  }
public static String getVersionInfo ( ) { final Class < ? > c = Version . class ; final StringBuilder b = new StringBuilder ( ) ; final Package p = c . getPackage ( ) ; b . append ( "Class: " + c . getCanonicalName ( ) + "; " ) ; b . append ( "Specification Vendor: " + p . getSpecificationVendor ( ) + "; " ) ; b . append ( "Specification Title: " + p . getSpecificationTitle ( ) + "; " ) ; b . append ( "Specification Version: " + p . getSpecificationVersion ( ) + "; " ) ; b . append ( "Implementation Vendor: " + p . getImplementationVendor ( ) + "; " ) ; b . append ( "Implementation Title: " + p . getImplementationTitle ( ) + "; " ) ; b . append ( "Implementation Version: " + p . getImplementationVersion ( ) + ";" ) ; return b . toString ( ) ; }
Prints the version of this library to System.out along with
some information on what this jar is.
Prints the version of this library to System . out along with some information on what this jar is .