public static VersionMonitor getVersion ( Class clazz ) throws IOException { Manifest manifest = new Manifest ( ) ; manifest . read ( clazz . getResourceAsStream ( MANIFEST_PATH ) ) ; return getVersion ( manifest ) ; }
Gets the current VersionMonitor base on a Class that will load it s manifest file .