๐ Extract the world!
extract all archive types in the same way!
archives are able to mount as fuse also using vavi-nio-file-archive
and vavi-net-fuse
name | mathod | read | write | comment | library |
---|---|---|---|---|---|
binhex | archiving | โ | - | binhex | |
bzip2 | archiving | โ | - | commons-compress | |
cab | archiving | โ | - | dorkbox | |
gca | archiving | - | - | win only | native |
gca | archiving | - | - | shell | |
gzip | archiving | โ | - | jdk | |
lha | archiving | โ | - | lha | |
rar | archiving | - | - | win only | native |
rar | archiving | - | - | shell | |
rar | archiving | โ * | - | java-unrar | |
rar | archiving | โ | - | no rar5 | junrar |
sevenzip | archiving | โ | - | 7z only | commons-compress |
sevenzip | archiving | - | - | native | |
stuffit | archiving | - | native | ||
tar | archiving | โ | - | commons-compress | |
tar | stream | โ | - | commons-compress | |
zip | archiving | โ * | - | jdk | |
zip | archiving | โ | - | ant | |
cpio | stream | ๐ง | - | gjt | |
lzma | stream | ๐ง | - | p7zip | |
rpm | archiving | ๐ง | - | gjt | |
apache | archiving | โ | - | multi | commons-compress |
* chosen as spi
Archive archive = Archives.getArchive(Paths.get("foo/bar.rar").toFile());
Path outDir = Paths.get("foo/bar");
for (Entry entry : archive.entries()) {
Files.copy(archive.getInputStream(entry), outDir.resolve(entry.getName()));
}
InputStream compressed = Archives.getInputStream(Paths.get("foo/bar.tar.bz").toFile());
Files.copy(compressed, Paths.get("foo/bar.tar"));
- Giant Java Tree/cpio ... Unknown
- Giant Java Tree/rpm ... Unknown
- p7zip/lzma ... LGPL
- LHA for Java ... LICENSE
- registory like IIORegistory
- commons-vfs
- truevfs
apache commons-compress- https://github.com/ZIPmagic/ZIPmagic/tree/master/StuffIt%20SDK
https://github.com/cstroe/SevenZip-Java(use 7zip-jbinding)- write!
rar5(done by 7zip-jbinding)@marcusvoltolim says sevenzipjbinding can deal rar5 ???- it's true
- unar v1.10.7 ... ok
- 7zip 17.04 ... ok
- https://github.com/prog-ai/ArchivR (wip)
https://github.com/Diab1o/java-7z-archiver ... yet another pure java 7zip implementation?(done)- where is my jna 7z implementation? (in the crashed hdd?)
- binary things ... gca.exe -> dll -> 64bit -> mach-O + winelib -> dylib