Thank you very much for your replies on this subject,

Just to check my understanding, here is my summary of the options you have
given for reading exponential numbers:

1) Use the java.text package - not an option does not support exponential
and also inefficient
2) Use StreamTokenizer - does not support exponential.
3) Use ReaderTokenizer - which is written by Steve Pietrowicz and works like
StreamTokenizer but
with exponentials supported.
4) Use StringTokenizer (which does support exponentials) then use
Double.parseDouble(s)
5) Use a parse program.

I'm not sure which of these to choose, I want something that's fast for
large meshes. I prefer the
functionality of StringTokenizer over StreamTokenizer because it allows
multiple separators and it
supports exponentials. However I guess StreamTokenizer should be more
efficient because you don't
have to create a string for each number to pass to parseDouble(), however
the workarounds for the lack
of exponential support seem to cause there own inefficiencies - which is
worse?

Looks like I need to investigate the options in more detail.

Thanks again,

Martin

www.martinb.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to