forked from proxyee-down-org/proxyee-down
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
120 changed files
with
1,680 additions
and
1,656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | ||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8"> | ||
<output url="file://$MODULE_DIR$/target/classes" /> | ||
<output-test url="file://$MODULE_DIR$/target/test-classes" /> | ||
<content url="file://$MODULE_DIR$"> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | ||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | ||
<excludeFolder url="file://$MODULE_DIR$/target" /> | ||
</content> | ||
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
<orderEntry type="library" name="Maven: lee.study:proxyee:1.0-SNAPSHOT" level="project" /> | ||
<orderEntry type="library" name="Maven: io.netty:netty-all:4.1.15.Final" level="project" /> | ||
<orderEntry type="library" name="Maven: org.bouncycastle:bcpkix-jdk15on:1.58" level="project" /> | ||
<orderEntry type="library" name="Maven: org.bouncycastle:bcprov-jdk15on:1.58" level="project" /> | ||
<orderEntry type="library" scope="PROVIDED" name="Maven: org.projectlombok:lombok:1.16.18" level="project" /> | ||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.25" level="project" /> | ||
</component> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>proxyee-down</artifactId> | ||
<groupId>lee.study</groupId> | ||
<version>2.0</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>proxyee-down-common</artifactId> | ||
<packaging>jar</packaging> | ||
|
||
</project> |
37 changes: 37 additions & 0 deletions
37
common/src/main/java/lee/study/down/constant/HttpDownStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package lee.study.down.constant; | ||
|
||
public class HttpDownStatus { | ||
|
||
/** | ||
* 等待下载 | ||
*/ | ||
public final static int WAIT = 0; | ||
/** | ||
* 正常发起的连接 | ||
*/ | ||
public final static int CONNECTING_NORMAL = 1; | ||
/** | ||
* 失败后发起的连接 | ||
*/ | ||
public final static int CONNECTING_FAIL = 2; | ||
/** | ||
* 继续下载发起的链接 | ||
*/ | ||
public final static int CONNECTING_CONTINUE = 3; | ||
/** | ||
* 下载中 | ||
*/ | ||
public final static int RUNNING = 4; | ||
/** | ||
* 暂停下载 | ||
*/ | ||
public final static int PAUSE = 5; | ||
/** | ||
* 下载失败 | ||
*/ | ||
public final static int FAIL = 6; | ||
/** | ||
* 下载完成 | ||
*/ | ||
public final static int DONE = 7; | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/java/lee/study/down/ext/BdyZip.java → ...c/main/java/lee/study/down/io/BdyZip.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package lee.study.down.ext; | ||
package lee.study.down.io; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
|
2 changes: 1 addition & 1 deletion
2
...study/down/ext/LargeMappedByteBuffer.java → .../study/down/io/LargeMappedByteBuffer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package lee.study.down.ext; | ||
package lee.study.down.io; | ||
|
||
import java.io.Closeable; | ||
import java.io.IOException; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.