On 19/12/2007, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> On 19/12/2007, John Kaputin <[EMAIL PROTECTED]> wrote:
> > Woden supports Java 1.4. The URL.toURI() method was introduced in Java 5.
>
> Ah yes good point - I should have set my eclipse to use 1.4.2
>
> > At any rate, the toURI() method will still result in a URISyntaxException
> > because the original path contains an illegal character (as defined by
> > RFC2396)... the space character which appears in the file path.  I think
> > the fix is to escape spaces in the path to %20.
>
> We basically need the capability the toURI() method gives us - which
> is to 'escape' more than just a space.

the URI(String scheme, String ssp, String fragment) ctor does the %20
substitution. So when the SimpleURIResolver ctor creates the URL to
the catalog on disk it could use this URI method to do the %20
substitution .. a bit like this perhaps:

        schemaCatalogURL = new URI("file", schemaCatalog.toString(),
null).toURL();

>
> >  Am looking into this now.
>
> thanks
>
> Jeremy
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to