public static String[] extractBinaryResourceInfo(String path) {

		String[] resourceInfo = new String[2];
		String resourcePath = path;
		if (resourcePath.startsWith(JawrConstant.URL_SEPARATOR)) {
			resourcePath = resourcePath.substring(1);
		}

		Matcher matcher = CACHE_BUSTER_PATTERN.matcher(resourcePath);
		StringBuffer result = new StringBuffer();
		if (matcher.find()) {
			matcher.appendReplacement(result,
					StringUtils.isEmpty(matcher.group(GENERATED_BINARY_WEB_RESOURCE_PREFIX_INDEX))
							? CACHE_BUSTER_STANDARD_BINARY_WEB_RESOURCE_REPLACE_PATTERN
							: CACHE_BUSTER_GENERATED_BINARY_WEB_RESOURCE_REPLACE_PATTERN);
			resourceInfo[0] = result.toString();
			resourceInfo[1] = matcher.group(1);
		} else {
			resourceInfo[0] = path;
		}

		return resourceInfo;
	}
public static String [ ] extractBinaryResourceInfo ( String path ) { String [ ] resourceInfo = new String [ 2 ] ; String resourcePath = path ; if ( resourcePath . startsWith ( JawrConstant . URL_SEPARATOR ) ) { resourcePath = resourcePath . substring ( 1 ) ; } Matcher matcher = CACHE_BUSTER_PATTERN . matcher ( resourcePath ) ; StringBuffer result = new StringBuffer ( ) ; if ( matcher . find ( ) ) { matcher . appendReplacement ( result , StringUtils . isEmpty ( matcher . group ( GENERATED_BINARY_WEB_RESOURCE_PREFIX_INDEX ) ) ? CACHE_BUSTER_STANDARD_BINARY_WEB_RESOURCE_REPLACE_PATTERN : CACHE_BUSTER_GENERATED_BINARY_WEB_RESOURCE_REPLACE_PATTERN ) ; resourceInfo [ 0 ] = result . toString ( ) ; resourceInfo [ 1 ] = matcher . group ( 1 ) ; } else { resourceInfo [ 0 ] = path ; } return resourceInfo ; }
Returns the binary resource info from the path

@param path
the path
@return the binary resource info from the path