Re: [Plastic-devs] Re: [Plastic-user] TOPCAT v2.1 release
Brought to you by:
johndavidtaylor,
thomasboch
|
From: Mark T. <m.b...@br...> - 2006-05-09 17:36:55
|
On Fri, 5 May 2006, Marco Comparato wrote: > Mark Taylor wrote: > > Marco, > > > > if I run TOPCAT on Windows it sends, for instance, > > ivo://votech.org/votable/loadFromURL messages with a url argument that > > looks like this: > > > > file://localhost/C:/DOCUME~1/Mark/LOCALS~1/Temp/plastic7533.vot > > > > Is this what you're talking about? > > Hi, > > yes, that is what I get. Marco, sorry for the delay - I meant to bring a windows machine in today so I could look at this but I forgot, I'll try to remember tomorrow. In the mean time: > > Windows seems to understand > > filenames/URLs in that format, in that if I type that URL into the > > location box of Internet Explorer, it picks up the file. > > I agree with you but if I pass this filename to Savot (the java library > I use to parse votables) I get wrong parsing. Do you have any idea why > this java library seems not to accept this path format? Does your > application accept it? Can you tell me exactly what goes wrong with savot? > > (For java-aware onlookers, this is the kind of File that you get > > from File.createTempFile() methods.) > > That is a little strange because it reformats the directory names bigger > than 8 chars but the file name is not reformatted even if it is bigger all a bit of a mystery to me, though it may have something to do with what John said about the difference between starting from DOS prompt or Windows. I'll try to investigate. > than 8 chars too. It seems you use it just to get a system temp dir, > Could you avoid the use of this method? I need to put temporary files somewhere, and File.createTempFile() is the normal way to do it. Mark -- Mark Taylor Astronomical Programmer Physics, Bristol University, UK m.b...@br... +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/ |