随笔分类 - Java
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
阅读全文
摘要:java写入网页内容 public static boolean writeHtml(String htmlPath,String htmlContent) throws IOException { File newFile = new File(htmlPath); //自动创建目录 File p
阅读全文
摘要:StandardCharsets /* * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to lice
阅读全文
摘要:java从一个较大的文本文档中查找字符串 public static void findStr(File fileParam) throws IOException{ FileReader fread = null; BufferedReader bufferRead = null; fread =
阅读全文
摘要:html中追加script Element headElement = htmlDocument.selectFirst("head"); if(headElement !=null) { headElement.appendElement("script").attr("src", "http:/
阅读全文
摘要:java读取csv文件 /** * 读取CSV文件内容 * @param csvFileName * @throws IOException */ public static void readCSVAndWrite( String inputCsvFileName1 ) throws IOExce
阅读全文
摘要:java 给csv增加一列 /** * 读取CSV文件内容 * @param csvFileName * @throws IOException */ public static void readCSVAndWrite( String inputCsvFileName1, String outpu
阅读全文
摘要:java FileInputStream读取文件 public static void readFileData(String filePath) throws IOException { File classFile = new File(filePath); FileInputStream fi
阅读全文
摘要:java FileReader FileWriter修改文件内容 public static void editContent(File fileParamOld,File fileParamNew) throws IOException{ FileReader fr = new FileReade
阅读全文
摘要:java copyFile public static void copyFile(File oldFile,File newFile) throws IOException{ FileInputStream fis = new FileInputStream(oldFile); FileOutpu
阅读全文
摘要:java扫描操作部分文件 public void findStrFromManyFiles(String dirName,String endStr) throws IOException{ File dir = new File(dirName); File[] files = dir.listF
阅读全文
摘要:java统计某个目录下某种文件的个数 public static void countNum(String filePath,String endStr) throws IOException{ File dirFile = new File(filePath); if(dirFile.isDire
阅读全文
摘要:java list根据对象的某个属性排序 Collections.sort(list1, new Comparator<BlogRank>() { @Override public int compare(BlogRank blogRankObj1, BlogRank blogRankObj2) {
阅读全文
摘要:Appendable /* * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to lice
阅读全文
摘要:AutoCloseable /* * Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to l
阅读全文
摘要:Closeable /* * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to licen
阅读全文
摘要:Flushable /* * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to licen
阅读全文
摘要:Writer /* * Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license
阅读全文
摘要:OutputStreamWriter /* * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject
阅读全文
摘要:FileWriter /* * Copyright (c) 1996, 2001, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to lice
阅读全文