/**
  * Find the nth occurrence of the given byte b in a UTF-8 encoded string
  *
  * @param utf a byte array containing a UTF-8 encoded string
  * @param start starting offset
  * @param length the length of byte array
  * @param b the byte to find
  * @param n the desired occurrence of the given byte
  * @return position that nth occurrence of the given byte if exists; otherwise -1
  * @deprecated use {@link org.apache.hadoop.util.UTF8ByteArrayUtils#findNthByte(byte[], int, int,
  *     byte, int)}
  */
 @Deprecated
 public static int findNthByte(byte[] utf, int start, int length, byte b, int n) {
   return org.apache.hadoop.util.UTF8ByteArrayUtils.findNthByte(utf, start, length, b, n);
 }
 /**
  * Find the first occurrence of the given bytes b in a UTF-8 encoded string
  *
  * @param utf a byte array containing a UTF-8 encoded string
  * @param start starting offset
  * @param end ending position
  * @param b the bytes to find
  * @return position that first byte occures otherwise -1
  * @deprecated use {@link org.apache.hadoop.util.UTF8ByteArrayUtils#findBytes(byte[], int, int,
  *     byte[])}
  */
 @Deprecated
 public static int findBytes(byte[] utf, int start, int end, byte[] b) {
   return org.apache.hadoop.util.UTF8ByteArrayUtils.findBytes(utf, start, end, b);
 }