标签:多线程 randomaccessfile http 下载 序列化
本篇博客可认为是对 使用java实现http多线程下载 一文的再次解读。例如host,accept都是request请求的字段部分(关于ruquest的详尽信息 可参考 HTTP深入浅出 http请求
public native void seek(long pos) throws IOException
* @param b the data.
* @param off the start offset in the data.
* @param len the number of bytes to write.
* @exception IOException if an I/O error occurs.
public void write(byte b[], int off, int len) throws IOException第一个方法就是定位,pos就是文件的某一个位置。标签:多线程 randomaccessfile http 下载 序列化
原文地址:http://blog.csdn.net/dlf123321/article/details/44160045