大最文件拷贝工具 - Java File Copy Library

fmms 13年前
     <p>Java File Copy Library 提供了一种简易的方法用于执行大量的文件拷贝工作,可定义批处理进行文件复制,复制的过程可通过一个进度条显示,如下图所示:</p>    <p><img alt="大最文件拷贝工具 - Java File Copy Library" align="middle" src="https://simg.open-open.com/show/d2db5e1d4358286acef34f4b425e811c.gif" width="408" height="100" /></p>    <p>示例代码:</p>    <pre class="brush:java; toolbar: true; auto-links: false;">    Source[] sources = new Source[]{         // all files from directory /home/user/source1/         new Source("/home/user/source1/", ".*"),         // all *.java files from directory /home/user/source2/         new Source("/home/user/source2/", ".*\\.java")     };     String[] destinations = new String[]{         "/home/user/destination1",         "/home/user/destination2"     };     CopyJob copyJob = new CopyJob(sources, destinations);</pre>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326803593499" target="_blank">http://www.open-open.com/lib/view/home/1326803593499</a></p>