static String hex(final byte[] input){
  final StringBuffer sb=new StringBuffer(input.length * 2);
  for (  final byte element : input) {
    sb.append(CollectionConstants.AXIS_HEX_TABLE[element >> 4 & 0xf]);
    sb.append(CollectionConstants.AXIS_HEX_TABLE[element & 0xf]);
  }
  return sb.toString();
}

static String hex ( final byte [ ] input ) { final StringBuffer sb = new StringBuffer ( input . length * 2 ) ; for ( final byte element : input ) { sb . append ( CollectionConstants . AXIS_HEX_TABLE [ element > > 4 & 0xf ] ) ; sb . append ( CollectionConstants . AXIS_HEX_TABLE [ element & 0xf ] ) ; } return sb . toString ( ) ; }
returns hex output of byte array
