| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.util.UTF8ByteArrayUtils
public class UTF8ByteArrayUtils
| Constructor Summary | |
|---|---|
| UTF8ByteArrayUtils() | |
| Method Summary | |
|---|---|
| static int | findByte(byte[] utf,
         int start,
         int end,
         byte b)Find the first occurrence of the given byte b in a UTF-8 encoded string | 
| static int | findBytes(byte[] utf,
          int start,
          int end,
          byte[] b)Find the first occurrence of the given bytes b in a UTF-8 encoded string | 
| static int | findNthByte(byte[] utf,
            byte b,
            int n)Find the nth occurrence of the given byte b in a UTF-8 encoded string | 
| static int | findNthByte(byte[] utf,
            int start,
            int length,
            byte b,
            int n)Find the nth occurrence of the given byte b in a UTF-8 encoded string | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public UTF8ByteArrayUtils()
| Method Detail | 
|---|
public static int findByte(byte[] utf,
                           int start,
                           int end,
                           byte b)
utf - a byte array containing a UTF-8 encoded stringstart - starting offsetend - ending positionb - the byte to find
public static int findBytes(byte[] utf,
                            int start,
                            int end,
                            byte[] b)
utf - a byte array containing a UTF-8 encoded stringstart - starting offsetend - ending positionb - the bytes to find
public static int findNthByte(byte[] utf,
                              int start,
                              int length,
                              byte b,
                              int n)
utf - a byte array containing a UTF-8 encoded stringstart - starting offsetlength - the length of byte arrayb - the byte to findn - the desired occurrence of the given byte
public static int findNthByte(byte[] utf,
                              byte b,
                              int n)
utf - a byte array containing a UTF-8 encoded stringb - the byte to findn - the desired occurrence of the given byte
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||