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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…