private ByteString escapeBytes(final ByteString value){
  if (!needEscaping(value)) {
    return value;
  }
  final ByteStringBuilder builder=new ByteStringBuilder();
  for (int i=0; i < value.length(); i++) {
    final byte b=value.byteAt(i);
    if (isByteToEscape(b)) {
      builder.appendByte(DN.NORMALIZED_ESC_BYTE);
    }
    builder.appendByte(b);
  }
  return builder.toByteString();
}

private ByteString escapeBytes ( final ByteString value ) { if ( ! needEscaping ( value ) ) { return value ; } final ByteStringBuilder builder = new ByteStringBuilder ( ) ; for ( int i = 0 ; i < value . length ( ) ; i ++ ) { final byte b = value . byteAt ( i ) ; if ( isByteToEscape ( b ) ) { builder . appendByte ( DN . NORMALIZED_ESC_BYTE ) ; } builder . appendByte ( b ) ; } return builder . toByteString ( ) ; }
return a new byte string with bytes 0x00 , 0x01 and 0x02 escaped . < p > these bytes are reserved to represent respectively the rdn separator , the ava separator and the escape byte in a normalized byte string .
