Create Cabinet file in Java

Does anyone know a library that allows you to create a cabinet file in pure Java?

+3
source share
3 answers

I wrote a Java application for this (pure Java implementation). It does not support compression and therefore basically just packs the files together and adds the cabinet header to the system. This is not too difficult to do, took me about a day to bash.

I'm not too sure how difficult it would be to implement compression, but I assume that this is not all trivial. The network has available information about the structure of the file format in the cabinet.

EDIT: now available on github: https://github.com/grahamrb/CabinetMaker

+3
source

, Java DeflaterOutputStream Deflate, .

Oh whaddaya know... : cablib ( 2006 )

+1

As far as I know, you can only create .cab files using the Microsoft CABARC utility . Thus, there is no implementation of "pure java".

You can call something like:

CABARC n myArchive.cab *.*

using Runtime.getRuntime (). exec () to create myArchive.cab.

0
source

Source: https://habr.com/ru/post/1708193/


All Articles