13,100
社区成员
发帖
与我相关
我的任务
分享
int blockLength=getBlockLength();//得到包大小
byte[] b=new byte[blockLength];
long offset=getOffset();//获得偏移值
DataInputStream is = fc.openDataInputStream();
if(offset>0)
is.skip(offset);//跳过已上传数据
is.read(b, 0, b.length);//读取相应包大小的数据