|
From: Alex M. <ale...@eu...> - 2006-09-25 09:09:45
|
I have a problem reading the QFJ Settings file when it is passed to me
as a java.util.Properties object. I am using code like:
=20
OutputStream out =3D new ByteArrayOutputStream();
getProperties().store(out, null);
InputStream inputStream =3D new
ByteArrayInputStream(((ByteArrayOutputStream) out).toByteArray());
SessionSettings settings =3D new SessionSettings(inputStream);
=20
The load() method in SessionSettings requires that the tokens are read
in a particular order i.e. section headings followed by the settings for
that section. Unfortunately the order of the entries in the original
file is not maintained in the OutputStream above. Does anyone know a
way round this or should I not be accessing the settings file via a
Properties object at all?
=20
Thanks,
=20
Alex
Eurobase International Limited and its subsidiaries (Eurobase) are =
unable to exercise control over the content of information in E-Mails. =
Any views and opinions expressed may be personal to the sender and are =
not necessarily those of Eurobase. Eurobase will not enter into any =
contractual obligations in respect of any part of its business in any =
E-mail.=20
Privileged / confidential information may be contained in this message =
and /or any attachments. This E-mail is intended for the use of the =
addressee(s) only and may contain confidential information. If you are =
not the / an intended recipient, you are hereby notified that any use or =
dissemination of this communication is strictly prohibited. If you =
receive this transmission in error, please notify us immediately, and =
then delete this E-mail.=20
Neither the sender nor Eurobase accepts any liability whatsoever for any =
defects of any kind either in or arising from this E-mail transmission. =
E-Mail transmission cannot be guaranteed to be secure or error-free, as =
messages can be intercepted, lost, corrupted, destroyed, contain =
viruses, or arrive late or incomplete. Eurobase does not accept any =
responsibility for viruses and it is your responsibility to scan any =
attachments.
Registered Address: Essex House, 2 County Place, Chelmsford, Essex CM2 =
0RE, United Kingdom
|