public class UTF8ByteArrayUtils extends Object
构造器和说明 |
---|
UTF8ByteArrayUtils() |
限定符和类型 | 方法和说明 |
---|---|
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
|
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 findpublic 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 findpublic 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 bytepublic 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 byteCopyright © 2009 The Apache Software Foundation