摘要:
import java.io.File;import java.io.IOException;import javax.sound.sampled.AudioFormat;import javax.sound.sampled.AudioInputStream;import javax.sound.s... 阅读全文
摘要:
实现原理:用httpConnection.setRequestProperty("RANGE", "bytes= xxx-xxx");获取指定的数据块用RandomAccessFile实现文件随机访问,写入指定数据块到文件.关键事项:获取远程文件大小,根据文件大小确定下载线程个数(可固定线程数,也可... 阅读全文
摘要:
package ddos;import java.io.BufferedInputStream;import java.io.IOException;import java.net.MalformedURLException;import java.net.URL;import java.net.U... 阅读全文
摘要:
//使用curl模块,必须在php.in 里面将curl模块开启。<?phpheader("Content-type: text/html; charset=utf-8");define("app_id","xxx");//APP_IDdefine("app_secret","xxxx");//AP... 阅读全文
摘要:
package com.hundred.httpclient;import java.io.IOException;import org.apache.commons.httpclient.HttpClient;import org.apache.commons.httpclient.HttpExc... 阅读全文