摘要:
1、使用 tcp 协议 读取 输入流的固定长度的字节数 public static byte[] getTcpSpecificBytes(BufferedInputStream bis,int length) throws IOException{ byte[] bytes = new byte[l 阅读全文
摘要:
1、在使用tcp协议传输数据时,使用到的 Int 数据的工具类方法 //将 Int 数据转换成字节数组 public static byte[] intToByteArray(int data){ byte[] result = new byte[4]; result[0] = (byte)((da 阅读全文
摘要:
1、向csv文件中追加数据 //向文件中追加数据 BufferedWriter csvBufferedWriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(csvFile,true),Encoding),102 阅读全文