I am currently using the java class Preferences to maintain preferences inside of our java application. It is simple, and currently only contains 2 key/value pairs. Some of the higher ups on this project have requested to keep the preferences.xml file inside of the JAR, to make it a clean running, so everything would be self contained within the JAR (users do not need to be able to access this file).
I know that preferences has an import using an InputStream, and an export using an OutputStream. Is there anyway to edit the file inside the jar using the outputStream?