public static String bcdDecodeToHexString ( int encodingScheme , byte [ ] bcdBytes ) throws UnsupportedEncodingException { StringBuilder sb = new StringBuilder ( ) ; for ( byte b : bcdBytes ) { sb . append ( bcdToHexString ( encodingScheme , b ) ) ; } if ( GenericDigits . _ENCODING_SCHEME_BCD_ODD == encodingScheme ) { sb . deleteCharAt ( sb . length ( ) - 1 ) ; } return sb . toString ( ) ; }
Decoded BCD encoded string into Hex digits string .