You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by APSERRANO <AP...@grupobbva.net> on 2002/04/02 17:08:12 UTC
Support for UNC names in org.apache.fop.app.InputHandler
Hi,
I've slightly modified org.apache.fop.app.InputHandler.fileInputSource
so that it works with UNC names under Windows, such
as "//host/resource/file".
The problem is caused by the use of java.net.URL.
Consider this example:
new java.net.URL("file", null, "//host/resource/file").toString()
that returns the string "file://host/resource/file" instead of
the right one: "file:////host/resource/file".
I've attached the patched InputHandler.java, from FOP 0.20.3.
Regards,
Alberto.