> On Monday 17 May 2004 09:50, E.L. Willighagen wrote:
>> > I have not tested it recently. But I do not see any reason why it
>> should
>> > not work.
>
> Neither did I... but it still doesn't :(
>
>> > Which file are you trying to test it with? Or does it seem to die with
>> > all files?
>
> A RSS feed... see below.

OK, I finally figured out what the problem is with openStringInline.

A couple of months ago I tried to introduce multi-threading into the File
IO. I say *tried* because I was not able to get it to work successfully.
And the code in the File Manager is now so ugly that I don't want to go
back and work on it anymore :-(

As a result of this work, calling openFile does not actually read the
entire file ... it just starts the process.

In order to complete the process one needs to call
JmolViewer.getOpenFileError(), which returns null (indicating success) or
an error message. This second step is necessary in order to complete the
openFile process.

And, this applies to openStringInline too ... but I forgot all about that.

For now, I have modifed the implementation of openStringInline so that it
explicitly calls getOpenFileError(). But the error value is not returned
... because I can't change the plugin source.

The good news is ... it works now.

Separately, it seems to me that you do not want to pass me a string.
Instead, you want to pass me an InputStream (or a Reader?). We should add
an openInputStream method. That will work much better when the feed is
actually coming across the network because the ModelAdapter can be parsing
the file while it is still coming across the wire.


Miguel






-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to