private static String extractVersion ( String fileName ) { int startIndex = INSTALL_MAP_PREFIX . length ( ) + 1 ; // skip the underscore after the prefix int endIndex = fileName . lastIndexOf ( INSTALL_MAP_SUFFIX ) ; if ( startIndex < endIndex ) { return fileName . substring ( startIndex , endIndex ) ; } else { return null ; } }
Returns the extracted version from fileName