Re: JFOR in Windows
Phil Chu <[email protected]> Fri, 02 Jan 2004 16:49:19 -0800
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
I finally got around to making this change - just committed it a few minutes ago (first change of the new year?). The code doesn't seem to handle URL's as input in general, anyway, (e.g. the logger assumes it's a filename, and it does break when I try passing an http URL as input), so I just wrapped the filename string with a FileReader, (looks a bit more symmetric, since the output is wrapped with a FileWriter). -Phil Bertrand Delacretaz wrote: > Le Samedi, 13 déc 2003, à 19:04 Europe/Zurich, Phil Chu a écrit : > >> ...I see the same thing on my XP box, and a URL such as >> file:///C:/technicat/www/softdev/gamedev.fo doesn't work, even though >> mozilla accepts it. >> >> I tried changing the code so that a FileInputStream is passed to >> InputSource (for the XML parsing) and that accepts plain old >> filenames. But then you couldn't type in a general URL, so I don't >> know if that is desired behavior. > > > IMO being able to accept plain filenames at the command-line is more > generally useful than accepting URLs, so I'd go for your new solution, > maybe with a command-line switch to the old behaviour. > > You could also, read the filename from the command-line, find out if > it's a URL (maybe by attempting to create a java.net.URL from it), and > based on this decide how to handle it, either in the "old" or the "new" > way. > > Hope this helps, > -Bertrand > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click > _______________________________________________ > jfor-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jfor-users > -- Phil Chu [email protected] http://www.technicat.com/ ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click