pull/330/head
AriaLyy 8 years ago
parent 0715ffeb9b
commit 53d449c72d
  1. 2
      .idea/misc.xml
  2. 2
      Aria/src/main/java/com/arialyy/aria/core/task/SingleThreadTask.java

@ -37,7 +37,7 @@
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

@ -82,7 +82,7 @@ final class SingleThreadTask implements Runnable {
is = conn.getInputStream();
//创建可设置位置的文件
BufferedRandomAccessFile file =
new BufferedRandomAccessFile(mConfigEntity.TEMP_FILE, "rwd", 8192);
new BufferedRandomAccessFile(mConfigEntity.TEMP_FILE, "rwd", BUF_SIZE);
//设置文件长度
file.seek(mConfigEntity.START_LOCATION);

Loading…
Cancel
Save