Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ruzhila/java-nio-http-download

A java nio http client download tool, 200 line of java code
https://github.com/ruzhila/java-nio-http-download

100-line-code campus-project curl http-client java learning-by-doing nio wget

Last synced: about 1 month ago
JSON representation

A java nio http client download tool, 200 line of java code

Awesome Lists containing this project

README

        

# A Nio HTTP Download in Java, 200 lines of code

**java-nio-http-download** is a pure Java implementation of [ruzhila/mget](https://github.com/ruzhila/mget) Multi-Thread HTTP Download Tool.

A simple Java NIO example to download files from the internet.

By [ruzhila.cn](http://ruzhila.cn/?from=github_mget_java), a campus for learning backend development through practice.

This is a tutorial code demonstrating how to use Java write NIO . Pull requests are welcome. 👏

## Features
- 👏 Simple Java NIO Example
- HTTP only, HTTPS not supported, coming soon.😬

## How to use
```shell
$ javac Downloader.java
$ java Downloader http://example.org example.html
Downloading...1256
Remaining: 0/1256 bytes
Download completed
```