Java
zmyde2010
这个作者很懒,什么都没留下…
展开
-
Java: Java Swing?
<br />周末无聊啃Thinking in Java,900多页,受益良多<br />Java Swing跟Qt不少想法都差不多<br />Java下用什么工具设计UI呢<br />VE?<br />VE1.4在eclipse 3.6还装不了,等1.5出来研究研究<br /> <br />原创 2010-08-14 19:38:00 · 944 阅读 · 0 评论 -
Java: File copy in Java – Benchmark(Java文件复制)
Posted by Baptiste Wicht on 2 August 2010, 7:18 am<br />Yesterday I wondered if the copyFile method in JTheque Utils was the best method or if I need to change. So I decided to do a benchmark.<br />So I searched all the methods to copy a File in Java, even转载 2010-11-19 22:09:00 · 2641 阅读 · 0 评论 -
Java: 复制文件最快方法
<br />不考虑多线程优化,单线程文件复制最快的方法是(文件越大该方法越有优势,一般比常用方法快30+%):<br /> <br /> private static void nioTransferCopy(File source, File target) { FileChannel in = null; FileChannel out = null; FileInputStream inStream = null; File原创 2010-11-21 09:24:00 · 11168 阅读 · 3 评论 -
Java: 文件排序
文件夹放前面,文件放后面,文件夹及文件之间根据名字排序: Collections.sort(list, new Comparator>() { public int compare(Map object1, Map object2) { File file1 = new File((String原创 2011-06-16 18:52:00 · 2273 阅读 · 0 评论 -
Java: 正则表达式匹配文件名
private class MyFilenameFilter implements FilenameFilter { private Pattern p; public MyFilenameFilter(String regex) { p = Patt原创 2011-07-18 17:11:24 · 12726 阅读 · 0 评论