类 StrUtils
java.lang.Object
cn.ezeyc.edpenc.util.StrUtils
- 作者:
- wz
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleancontainsArray(String str, String[] array) 字符串是否包含数组中的任1元素static booleanequal(char[] char1, char[] char2) char数组比较static booleanstatic StringinsertStringArray(String[] arrayStr, String insertStr, String pos) 在字符串的某个位置插入字符串static booleanisEmpty(char[] str) 判断字符串是否为空static boolean判断字符串是否为空static booleanisNotEmpty(char[] str) 判断字符串是否不为空static char[]merger(char[]... bts) 合并byte[]static byte[]toBytes(char[] chars) 字符数组转成字节数组static char[]toChars(byte[] bytes) 字节转char数组
-
构造器详细资料
-
StrUtils
public StrUtils()
-
-
方法详细资料
-
isEmpty
判断字符串是否为空- 参数:
str- 字符串- 返回:
- 是否是空的
-
isEmpty
public static boolean isEmpty(char[] str) 判断字符串是否为空- 参数:
str- 字符串- 返回:
- 是否是空的
-
isNotEmpty
public static boolean isNotEmpty(char[] str) 判断字符串是否不为空- 参数:
str- 字符串- 返回:
- 是否不是空的
-
merger
public static char[] merger(char[]... bts) 合并byte[]- 参数:
bts- 字节数组- 返回:
- 合并后的字节
-
toChars
public static char[] toChars(byte[] bytes) 字节转char数组- 参数:
bytes- 字节数组- 返回:
- chars
-
toBytes
public static byte[] toBytes(char[] chars) 字符数组转成字节数组- 参数:
chars- 字符数组- 返回:
- 字节数组
-
equal
public static boolean equal(char[] char1, char[] char2) char数组比较- 参数:
char1- char1char2- char2- 返回:
- 是否相等
-
containsArray
字符串是否包含数组中的任1元素- 参数:
array- 数组str- 包含的字串- 返回:
- 是否
-
insertStringArray
在字符串的某个位置插入字符串- 参数:
arrayStr- 字符串数组insertStr- 要插入的字串pos- 位置开始标识- 返回:
- 插入后的字串
-
findClass
-