>> > Miguel, I had to change lin 66 from ModelResolver into >> >> > bufferedReader.mark(5120); // 512 was not enough to hold 4 lines! >> > >> > It turned out that the first 4 lines of CML files are likely to exceed >> > 512 chars, so that the reset did not work. Comments? >> >> No problem at all. >> You may want to take a look at the cml tags that the ModelResolver is >> using. > > It's not the recognizion of CML that is the problem... the problem was > that > the buffer could not be reset, because the mark was more than 512 chars > away... and reseting will fail then....
Hmmm ... good point. I will think about whether or not there is an easy way for us to limit the number of characters that we read in. Basically, read in a fixed number of bytes and then turn it into lines. Otherwise, this is consistently going to be a problem with CML. [snip] > Is openStringInline(String) the proper method to use, or is there also > something like openString(String)? I thought that openStringInline would have worked. I will take a look at it. Miguel ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
