用法:
//将文件转换为字节组,字节组将为字符串形式返回赋值给“b”
String b = i.otob("%abc.txt");
syso(b);
//将字符串转换为字节组
String b = i.otob("utf-8", "nihao");
syso(b);
//不设置编码
String b = i.otob(null, "nihao");
//将文件转换成 byte[] 字节数组对象
byte[] b = i.otob("file", null, "%abc.txt");
syso(b);
//将字符串转换成 byte[] 字节数组对象
byte[] b = i.otob("str", "utf-8", "nihao");
syso(b);
说明:
将字符或文件转换为字节组