Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Later
-
None
-
None
-
None
-
None
Description
Currently Configuration has the following methods for persistence:
public void writeXml(OutputStream out) throws IOException { public void writeXml(Writer out) throws IOException {
Adding API for persisting to file given path would be useful:
public void writeXml(String path) throws IOException {
Background: I recently worked on exporting Configuration to a file using JNI.
Without the proposed API, I resorted to some trick such as the following:
http://www.kfu.com/~nsayer/Java/jni-filedesc.html