Java--多线程断点下载 (三)
sg("第" + threadId + "条线程下载失败");
callback.fail(messages);
}finally{
try {
if(threadfile != null){
threadfile.close();
}
if(inStream != null){
inStream.close();
}
if(conn != null){
conn.disconnect();
}
} catch (IOException e) {
e.printStackTrace();
}
downLoadCallBack.isFinished();
}
}
}