org.linkedin.util-core/src/main/java/org/linkedin/util/codec/HexaCodec.java
@Override
  public String encode(byte[] byteArray)
  {
    int len = byteArray.length;

    char[] encoded = new char[len * 2];

    int j = 0;
    for(int i = 0; i < byteArray.length; i++)
    {
      int b = byteArray[i] & 0xFF;
      String hexa = HEXA_VALUES[b];
      encoded[j++] = hexa.charAt(0);
      encoded[j++] = hexa.charAt(1);
    }

    return new String(encoded);
  }
@Override
  public String encode(byte[] byteArray)
  {
    int len = byteArray.length;

    char[] encoded = new char[len * 2];

    int j = 0;
    for(int i = 0; i < byteArray.length; i++)
    {
      int b = byteArray[i] & 0xFF;
      String hexa = HEXA_VALUES[b];
      encoded[j++] = hexa.charAt(0);
      encoded[j++] = hexa.charAt(1);
    }

    return new String(encoded);
  }
Encode the array into a <code>String</code>

@param byteArray the array to encode
@return the encoded <code>String</code>