1、String 转为:byte data.getBytes()
2、Byte[] byte 转为:String data =new String(mBytes, Charset.forName("UTF-8"));
3、输入流 ByteArrayInputStream bis =new ByteArrayInputStream(mBytes);
4、输出流ByteArrayOutputStream bos =new ByteArrayOutputStream();
1、String 转为:byte data.getBytes()
2、Byte[] byte 转为:String data =new String(mBytes, Charset.forName("UTF-8"));
3、输入流 ByteArrayInputStream bis =new ByteArrayInputStream(mBytes);
4、输出流ByteArrayOutputStream bos =new ByteArrayOutputStream();
本文标题:Byte[] 数组
本文链接:https://www.haomeiwen.com/subject/qbbpektx.html
网友评论