摘要: 1.单线程实现package com.mime; import java.io.File; public class TotalFileSizeSequential { private long getTotalSizeOfFilesInDir(final File file) { if (file.isFile()) return file.length(); final File[] children = file.listFiles(); long total = 0; if (children != null) for (final File chil... 阅读全文
posted @ 2012-11-21 21:15 zhwj184 阅读(527) 评论(0) 推荐(0) 编辑