public static byte[] decode(byte[] data){
  ByteArrayOutputStream bOut=new ByteArrayOutputStream();
  try {
    encoder.decode(data,0,data.length,bOut);
  }
 catch (  Exception e) {
    throw new DecoderException("exception decoding Hex data: " + e.getMessage(),e);
  }
  return bOut.toByteArray();
}

public static byte [ ] decode ( byte [ ] data ) { ByteArrayOutputStream bOut = new ByteArrayOutputStream ( ) ; try { encoder . decode ( data , 0 , data . length , bOut ) ; } catch ( Exception e ) { throw new DecoderException ( "exception decoding Hex data: " + e . getMessage ( ) , e ) ; } return bOut . toByteArray ( ) ; }
decode the hex encoded input data . it is assumed the input data is valid .
