"Paul Hamaker" <ph@semm.tmfweb.nl> je napisao u poruci interesnoj
grupi:1162541943.141983.106490@f16g2000cwb.googlegroups.com...
> URL("file://c:/dir/file") is okay, since it includes a valid protocol,
> 'file:' , and forward slashes .
> See http://java.sun.com/j2se/1.5.0/docs/api/java/net/URL.html
> and
> http://www.gbiv.com/protocols/uri/rfc/rfc3986.html
> amo
this works:
URL
maxFile=TestMaxJmeWrite.class.getClassLoader().getResource("jmetest/data/mod
el/Character.3DS");
and this don't:
URL maxFile=new URL("file://d:/Character.3ds");
FreeStyler - 04 Nov 2006 16:00 GMT
"FreeStyler" <pascal@po.t-com.hr> je napisao u poruci interesnoj
grupi:eig0o8$9m7$1@ss408.t-com.hr...
> "Paul Hamaker" <ph@semm.tmfweb.nl> je napisao u poruci interesnoj
> grupi:1162541943.141983.106490@f16g2000cwb.googlegroups.com...
[quoted text clipped - 7 lines]
> this works:
> URL
maxFile=TestMaxJmeWrite.class.getClassLoader().getResource("jmetest/data/mod
> el/Character.3DS");
>
> and this don't:
> URL maxFile=new URL("file://d:/Character.3ds");
Finally this works:
URL maxFile=new URL("file:/d:/Character.3ds"); //not file://
but still can't figure out why all classes don't have the same syntax.
Somewhere "fille://" works
Tor Iver Wilhelmsen - 04 Nov 2006 16:17 GMT
> URL maxFile=new URL("file:/d:/Character.3ds"); //not file://
> but still can't figure out why all classes don't have the same syntax.
> Somewhere "fille://" works
The semantics is that // indicates a remote resource, e.g. a file on a
remote server could be
file://servername.foo.com/ExportedFolder/theFile.txt
Implicitly an empty server indication means the local machine, so
file:///d:/Character.3ds
should work.