[
https://issues.apache.org/jira/browse/CONFIGURATION-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12489027
]
Anselm Kruis commented on CONFIGURATION-249:
--------------------------------------------
Hi Emmanuel,
Besides plain "file:"-URLs, I'll write to a "fgfile:"-URL. Unfortunately,
fgfile is an URL schema specific to a closed source product: flowGuide
from science+computing. The fgfile-URL is an extention to the usual file
URL, that adds some metadata about the file.
But it is also possible to write to ftp or http or any other writable
schema you plug into the java runtime. Of course this makes testing the
non "file:" case a little bit complicated: you need a suitable ftp or
http server first, or you need your own URL-handler classes.
Best Regards
Anselm
---
Dipl. Phys. Anselm Kruis science + computing ag
Senior Solutions Engineer Ingolst�dter Str. 22
email [EMAIL PROTECTED] 80807 M�nchen, Germany
phone +49 89 356386 874 www.science-computing.de
fax +49 89 356386 737
> save to URLs with a protocol other than "file:"
> -----------------------------------------------
>
> Key: CONFIGURATION-249
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-249
> Project: Commons Configuration
> Issue Type: Improvement
> Affects Versions: 1.4
> Reporter: Anselm Kruis
> Priority: Minor
> Fix For: 1.5
>
>
> Currently, the save(URL) method from AbstractFileConfiguration only supports
> "file:" URLs.
> Why not support writing to URLs too? It is as simple like this
> java.net.URLConnection connection =
> url.openConnection();
> connection.setDoOutput(true);
> connection.setDoInput(false);
> save(connection.getOutputStream());
> I could prepare a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]