0

Hi,
I am new to this community.

I have a problem described below.

I need to write a java code which would archive a set of files in "newc" format and then compress it using gzip. There are apis to compress in gzip format but couldnt find an api that would archive in "newc" format.
One solution is to invoke "cpio" command (to compress in "newc" format) through java code but this will work only on linux. I need to find something similar on windows, as the code must run on both on windows and linux.

Any help is appreciated. Thanks in advace

4
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by jwenting
0

I need to find something similar on windows, as the code must run on both on windows and linux.

in that case I take it you are happy to have learned that Java code does not depend on the platform it is run on? the same code will run both on Linux and Windows

0

so all you need to do is find out what the file format looks like and create some library to write (and probably read while you're at it) that format.

Good luck.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.