https://github.com/happyuky7/folderutils-download-java-files
FolderUtils-Download-Java-Files
https://github.com/happyuky7/folderutils-download-java-files
discord download-file downloader gradle maven minecraft minecraft-server plugins spigot spigotmc url
Last synced: 3 months ago
JSON representation
FolderUtils-Download-Java-Files
- Host: GitHub
- URL: https://github.com/happyuky7/folderutils-download-java-files
- Owner: Happyuky7
- License: mit
- Created: 2023-02-05T23:59:53.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-11T05:52:55.000Z (over 1 year ago)
- Last Synced: 2025-01-06T14:20:58.638Z (5 months ago)
- Topics: discord, download-file, downloader, gradle, maven, minecraft, minecraft-server, plugins, spigot, spigotmc, url
- Language: Java
- Homepage: https://happyrogelio7.xyz/FolderUtils-Download-Java-Files/
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FolderUtils-Download-Java-Files
FolderUtils-Download-Java-Files| [English](README.md) | [Español](README_ES.md) | [German](README_DE.md) | [Japanese](README_JP.md) |
|------| ---- | ---- | ---- |[](https://github.com/Happyuky7/FolderUtils-Download-Java-Files/releases/tag/1.0.1)
[](https://github.com/Happyuky7/FolderUtils-Download-Java-Files/issues)
[](https://github.com/Happyuky7/FolderUtils-Download-Java-Files/blob/master/LICENSE)
[]()[My website](https://happyrogelio7.xyz), My website
[My Server Discord](https://discord.gg/3EebYUyeUX), Support My Server Discord
[Kaory Studios](https://kaorystudios.xyz), Support Kaoty Studios
[Kaory Studios Discord](https://discord.gg/Gw7m8kC), Support Kaoty Studios
## Maven:
### Repository:
```xmljitpack.io
https://jitpack.io```
### Dependency:
```xmlcom.github.happyuky7
FolderUtils-Download-Java-Files
1.0.1```
## Gradle:
### Repository:
```groovy
repositories {
maven { url 'https://jitpack.io' }
}
```### Dependency:
```groovy
dependencies {
implementation 'com.github.happyuky7:FolderUtils-Download-Java-Files:1.0.1'
}
```## Usage:
### Download File:
This library is very easy to use, just do what a "try", as in the example below.
```java
try {
System.out.println("Downloading file...");FolderDownloadUtils.downloadFile("url/download/file.extension", "folder/file.extension");
System.out.println("File downloaded!");} catch (MalformedURLException e) {
System.out.println("Download file Error!");
e.printStackTrace();
}System.out.println("Download file success!");
```
Inside the "try", you import the class and the downloadFile option as shown below in the example.
In the first part we put the URL that downloads the file example:
"https://github.com/Happyuky7/FolderUtils-Download-Java-Files/releases/download/1.0.1/FolderUtils-Download-Java-Files.jar"
in case it doesn't end with ".file extension" it won't work.
```java
FolderDownloadUtils.downloadFile( ***--->"url/download/file.extension"<---***
```---
then in the second part we put the folder where the file will be saved here another example:
"C:/Users/Admin/Desktop/Archive/FolderUtils-Download-Java-Files.jar"
```java
FolderDownloadUtils.downloadFile("url/download/file.extension", ***--->"folder/file.extension"<---***);
```---
The result of the example would be:
```java
import com.github.happyuky7.testdownload;
public class Main {
public static void main(String[] args) {
try {
System.out.println("Downloading file...");
FolderDownloadUtils.downloadFile("url/download/file.extension", "folder/file.extension");
System.out.println("File downloaded!");
} catch (MalformedURLException e) {
System.out.println("Download file Error!");
e.printStackTrace();
}
System.out.println("Download file success!");
}
}```
---
## Join us
* Feel free to open a PR! We accept contributions.
* [Discord](https://discord.gg/3EebYUyeUX)## Special Thanks To


[IntelliJ IDEA](https://www.jetbrains.com/idea/), Code editor for Java and other programming languages and programs.
[Azul Java](https://www.azul.com/) The world’s largest commercial provider of OpenJDK