I have a large number of user settings that I want to store within an XML file. If it is possible, I would like to keep that XML file within the JAR itself, but so far I have found nothing that permits me to do that (lots of searching on Google turned up nothing).
I plan to use JAXB to handle reading and writing the XML file but first I need to know if it's possible to write to the XML file within the JAR during run time.
So far getClass().getResourceAsStream()
seems to be on target except it only returns an input stream to read from the file. Is it possible at all to write to a file stored as a resource within a JAR file at run time? To open that file for Output?