commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kenji Nakamura <ken...@clazzsoft.com>
Subject [configuraiton] Save multiple values in one line
Date Fri, 13 Jan 2006 23:03:50 GMT
Hi,

I just started to explorer commons-configuration, and got the
following problem.
I'd like to save a property to a file with List type value in one line.
By default, the output looks like this.
key = value1
key = value2

I want to make the output like this.
key = value1, value2

I managed to do this by setting "0"  temporarily as the delimiter in
ProeprtiesConfiguration. However, even after I set back the original
delimiter ',', calling getList() returns a single entry containing
"value1,value2" as the value.
In addition to that, I don't want to change the delimiter because it
is static and affects all threads using AbstractConfiguration and the
subclasses.

Is there a way to save list values in one-line without resorting to
changing the delimiter temporarily?

Thanks in advance,

--
Kenji Nakamura

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message