|
From: Steve B. <st...@te...> - 2006-09-26 07:04:09
|
Hi Alex,
The session settings format looks similar to a property file format but it
is different. Why are you
using properties to initialize the settings data? There's probably another
way to do it depending on
what you need to do.
Steve
_____
From: qui...@li...
[mailto:qui...@li...] On Behalf Of Alex
McGlashan
Sent: Monday, September 25, 2006 11:08 AM
To: qui...@li...
Subject: [Quickfixj-users] Settings
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:
OutputStream out = new ByteArrayOutputStream();
getProperties().store(out, null);
InputStream inputStream = new
ByteArrayInputStream(((ByteArrayOutputStream) out).toByteArray());
SessionSettings settings = new SessionSettings(inputStream);
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?
Thanks,
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.
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.
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
|