https://github.com/osiris-team/archives-java
High level Java API for handling archives (.tar, .tar.gz and .tar.xz).
https://github.com/osiris-team/archives-java
Last synced: 9 months ago
JSON representation
High level Java API for handling archives (.tar, .tar.gz and .tar.xz).
- Host: GitHub
- URL: https://github.com/osiris-team/archives-java
- Owner: Osiris-Team
- License: mit
- Created: 2021-10-07T14:41:17.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-21T10:53:29.000Z (over 4 years ago)
- Last Synced: 2025-02-13T13:49:56.447Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Archives-Java [](https://jitpack.io/#Osiris-Team/Archives-Java)
High level Java API for handling archives (.tar, .tar.gz and .tar.xz).
```java
Tar tar = new Tar("file-name");
TarGz targz = new TarGz("file-name");
TarXz tarxz = new TarXz("file-name");
tar.addFile(fileOrDir); // Works the same for TarGz and TarXz.
tar.createInDir(dir); // Creates file-name.tar in the specified directory.
```
Note that this is still in early development so the example might have changed and some things are not working yet.
## Motivation
I wasn't able to find a Java lib/api that was simple and easy to use and covered multiple archive types in a single lib.
Thus I started this project with the aim of having a high level, simple Java lib to handle archive files.