public static String replaceChecksum ( final String contentSpecString , final String checksum ) { Matcher matcher = CS_CHECKSUM_PATTERN . matcher ( contentSpecString ) ; if ( matcher . find ( ) ) { return matcher . replaceFirst ( "CHECKSUM=" + checksum + "\n" ) ; } return contentSpecString ; }
Replaces the checksum of a Content Spec with a new checksum value