public synchronized static String installedVersion ( ) { BufferedReader versionReader = null ; try { versionReader = new BufferedReader ( new FileReader ( BMP_LOCAL_VERSION_FILE ) ) ; // Read version and verify it's there String version = versionReader . readLine ( ) ; if ( null == version ) throw new Exception ( ) ; return version ; } catch ( Exception e ) { throw new BMPCLocalNotInstalledException ( "Version file not found: " + BMP_LOCAL_VERSION_FILE ) ; } finally { try { if ( null != versionReader ) versionReader . close ( ) ; } catch ( IOException e ) { // Do nothing here } } }
Installed version of Local BrowserMob Proxy