It is possible to update individual files in a JAR file using the jar
command as follows:
jar uf TicTacToe.jar images/new.gif
Is there a way to do this programmatically?
I have to rewrite the entire jar file if I use JarOutputStream
, so I was wondering if there was a similar "random access" way to do this. Given that it can be done using the jar
tool, I had expected there to be a similar way to do it programmatically.