public final class ArrayUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
append(byte[] org,
byte to)
从指定数组的copy一个子数组并返回
|
static byte[] |
append(byte[] org,
byte[] to)
从指定数组的copy一个子数组并返回
|
static void |
append(byte[] org,
int from,
byte[] append)
从指定数组的copy一个子数组并返回
|
static byte[] |
arrayReplace(byte[] org,
byte[] search,
byte[] replace,
int startIndex)
查找并替换指定byte数组
|
static byte[] |
char2byte(java.lang.String encode,
char... chars) |
static byte[] |
copyOfRange(byte[] original,
int from,
int to)
从指定数组的copy一个子数组并返回
|
static int |
indexOf(byte[] org,
byte[] search)
查找指定数组的起始索引
|
static int |
indexOf(byte[] org,
byte[] search,
int startIndex)
查找指定数组的起始索引
|
static int |
lastIndexOf(byte[] org,
byte[] search)
查找指定数组的最后一次出现起始索引
|
static int |
lastIndexOf(byte[] org,
byte[] search,
int fromIndex)
查找指定数组的最后一次出现起始索引
|
public static byte[] arrayReplace(byte[] org,
byte[] search,
byte[] replace,
int startIndex)
throws java.io.UnsupportedEncodingException
org - of type byte[] 原数组search - of type byte[] 要查找的数组replace - of type byte[] 要替换的数组startIndex - of type int 开始搜索索引java.io.UnsupportedEncodingException - whenpublic static byte[] append(byte[] org,
byte[] to)
org - of type byte[] 原数组to - 合并一个byte[]public static byte[] append(byte[] org,
byte to)
org - of type byte[] 原数组to - 合并一个bytepublic static void append(byte[] org,
int from,
byte[] append)
org - of type byte[] 原数组from - 起始点append - 要合并的数据public static byte[] copyOfRange(byte[] original,
int from,
int to)
original - of type byte[] 原数组from - 起始点to - 结束点public static byte[] char2byte(java.lang.String encode,
char... chars)
public static int indexOf(byte[] org,
byte[] search)
org - of type byte[] 原数组search - of type byte[] 要查找的数组public static int indexOf(byte[] org,
byte[] search,
int startIndex)
org - of type byte[] 原数组search - of type byte[] 要查找的数组startIndex - 起始索引public static int lastIndexOf(byte[] org,
byte[] search)
org - of type byte[] 原数组search - of type byte[] 要查找的数组public static int lastIndexOf(byte[] org,
byte[] search,
int fromIndex)
org - of type byte[] 原数组search - of type byte[] 要查找的数组fromIndex - 起始索引