随笔分类 -  Java

上一页 1 2 3 4 5 6 7 ··· 11 下一页
Java zone
摘要:数据处理日志 package com.vfsd.core; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.n 阅读全文
posted @ 2023-01-15 16:49 西北逍遥 阅读(51) 评论(0) 推荐(0)
摘要:java写入网页内容 public static boolean writeHtml(String htmlPath,String htmlContent) throws IOException { File newFile = new File(htmlPath); //自动创建目录 File p 阅读全文
posted @ 2022-12-11 16:04 西北逍遥 阅读(96) 评论(0) 推荐(0)
摘要:StandardCharsets /* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to lice 阅读全文
posted @ 2022-12-10 12:38 西北逍遥 阅读(72) 评论(0) 推荐(0)
摘要:java从一个较大的文本文档中查找字符串 public static void findStr(File fileParam) throws IOException{ FileReader fread = null; BufferedReader bufferRead = null; fread = 阅读全文
posted @ 2022-12-09 17:46 西北逍遥 阅读(545) 评论(0) 推荐(0)
摘要:html中追加script Element headElement = htmlDocument.selectFirst("head"); if(headElement !=null) { headElement.appendElement("script").attr("src", "http:/ 阅读全文
posted @ 2022-12-07 13:37 西北逍遥 阅读(83) 评论(0) 推荐(0)
摘要:java读取csv文件 /** * 读取CSV文件内容 * @param csvFileName * @throws IOException */ public static void readCSVAndWrite( String inputCsvFileName1 ) throws IOExce 阅读全文
posted @ 2022-12-06 13:28 西北逍遥 阅读(437) 评论(0) 推荐(0)
摘要:java 给csv增加一列 /** * 读取CSV文件内容 * @param csvFileName * @throws IOException */ public static void readCSVAndWrite( String inputCsvFileName1, String outpu 阅读全文
posted @ 2022-12-05 09:10 西北逍遥 阅读(456) 评论(0) 推荐(0)
摘要:java FileInputStream读取文件 public static void readFileData(String filePath) throws IOException { File classFile = new File(filePath); FileInputStream fi 阅读全文
posted @ 2022-12-04 21:57 西北逍遥 阅读(214) 评论(0) 推荐(0)
摘要:java FileReader FileWriter修改文件内容 public static void editContent(File fileParamOld,File fileParamNew) throws IOException{ FileReader fr = new FileReade 阅读全文
posted @ 2022-12-03 12:11 西北逍遥 阅读(487) 评论(0) 推荐(0)
摘要:java copyFile public static void copyFile(File oldFile,File newFile) throws IOException{ FileInputStream fis = new FileInputStream(oldFile); FileOutpu 阅读全文
posted @ 2022-12-02 17:47 西北逍遥 阅读(188) 评论(0) 推荐(0)
摘要:java扫描操作部分文件 public void findStrFromManyFiles(String dirName,String endStr) throws IOException{ File dir = new File(dirName); File[] files = dir.listF 阅读全文
posted @ 2022-12-01 08:47 西北逍遥 阅读(42) 评论(0) 推荐(0)
摘要:java统计某个目录下某种文件的个数 public static void countNum(String filePath,String endStr) throws IOException{ File dirFile = new File(filePath); if(dirFile.isDire 阅读全文
posted @ 2022-11-30 20:28 西北逍遥 阅读(670) 评论(0) 推荐(0)
摘要:java list根据对象的某个属性排序 Collections.sort(list1, new Comparator<BlogRank>() { @Override public int compare(BlogRank blogRankObj1, BlogRank blogRankObj2) { 阅读全文
posted @ 2022-11-29 20:45 西北逍遥 阅读(537) 评论(0) 推荐(0)
摘要:Appendable /* * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to lice 阅读全文
posted @ 2022-11-28 22:56 西北逍遥 阅读(30) 评论(0) 推荐(0)
摘要:AutoCloseable /* * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to l 阅读全文
posted @ 2022-11-27 16:39 西北逍遥 阅读(30) 评论(0) 推荐(0)
摘要:Closeable /* * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to licen 阅读全文
posted @ 2022-11-26 19:30 西北逍遥 阅读(26) 评论(0) 推荐(0)
摘要:Flushable /* * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to licen 阅读全文
posted @ 2022-11-23 22:28 西北逍遥 阅读(41) 评论(0) 推荐(0)
摘要:Writer /* * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license 阅读全文
posted @ 2022-11-22 14:40 西北逍遥 阅读(246) 评论(0) 推荐(0)
摘要:OutputStreamWriter /* * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject 阅读全文
posted @ 2022-11-21 16:46 西北逍遥 阅读(35) 评论(0) 推荐(0)
摘要:FileWriter /* * Copyright (c) 1996, 2001, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to lice 阅读全文
posted @ 2022-11-20 16:31 西北逍遥 阅读(45) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 ··· 11 下一页