Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a Cabinet file in Java

Tags:

java

does anyone know a library that makes it possible to create a cabinet file in pure Java?


2 Answers

I wrote a java application to do this (pure java implementation). It does not support compression and so it basically just packages the files together and adds the cabinet header to the system. It isn't too complicated to do, took me about a day to bash it out.

Not too sure how complex it would be to implement compression but I assume it would not be all that trivial. There is a fair bit of information available on the net on the structure of the cabinet file format.

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

like image 124
grahamrb Avatar answered Jan 28 '26 12:01

grahamrb


To get started you can use Java's DeflaterOutputStream to do Deflate compression which is one of the supported cab compression schemes.

Oh whaddaya know... I found one: cablib (but it's not in development since 2006)

like image 43
Karl the Pagan Avatar answered Jan 28 '26 12:01

Karl the Pagan