摘要: //从string数组创建临时文件 private static File createSampleFile(String[] strs) throws IOException { File file = File.createTempFile("aws-java-sdk-", ".txt"); file.deleteOnExit(); Writer writer = new OutputStre 阅读全文
posted @ 2019-09-12 17:36 Mars.wang 阅读(497) 评论(0) 推荐(0) 编辑
摘要: java官方提供了一种操作字节数组的方法——内存流(字节数组流)ByteArrayInputStream、ByteArrayOutputStream ByteArrayOutputStream——byte数组合并 ByteArrayInputStream——byte数组截取 阅读全文
posted @ 2019-09-12 15:37 Mars.wang 阅读(12621) 评论(0) 推荐(0) 编辑