2014年(100)
发布时间:2014-07-28 11:40:05
Java路径中的空格问题1、 URLTest.class.getResource("/").getPath(); URLTest.class.getResource("/").getFile(); URLTest.class.getClassLoader().getResource("").getPath(); Thread.currentThread().getContextClassLoader().getResource("").getPath();等多种相似方式获得.........【阅读全文】
发布时间:2014-07-28 11:10:22
package wml.dl;import java.io.BufferedInputStream;import java.io.FileNotFoundException;import java.io.IOException;import java.io.InputStream;import java.net.HttpURLConnection;import java.util.Properties;import wml.dl.io.BufferedRandomOutputStream;* 下载线程,负责下载DLBlock* @author wml.........【阅读全文】