org.apache.commons.ssl
Class Version.CompileTime

java.lang.Object
  extended by org.apache.commons.ssl.Version.CompileTime
Enclosing class:
Version

private static class Version.CompileTime
extends Object

Searches through a jar file to the find the most recent timestamp of all the class files.


Field Summary
private static DateFormat DF
           
private static String DF_FORMAT
           
private static String PATTERN
           
private static String PREFIX
           
 
Constructor Summary
private Version.CompileTime()
           
 
Method Summary
static String formatVersion(String version, String compileTime)
           
static Date getCompileTime(String resource)
           
static String getCompileTimeString(Class clazz)
           
private static String getCompileTimeString(String resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATTERN

private static final String PATTERN
See Also:
Constant Field Values

PREFIX

private static final String PREFIX
See Also:
Constant Field Values

DF_FORMAT

private static final String DF_FORMAT
See Also:
Constant Field Values

DF

private static final DateFormat DF
Constructor Detail

Version.CompileTime

private Version.CompileTime()
Method Detail

getCompileTimeString

public static String getCompileTimeString(Class clazz)

getCompileTimeString

private static String getCompileTimeString(String resource)

getCompileTime

public static Date getCompileTime(String resource)
                           throws IOException
Throws:
IOException

formatVersion

public static String formatVersion(String version,
                                   String compileTime)