return new URL("jar:file:" + ctx.getRootURI().getPath() + "!" + lpath);
}
if (peer instanceof AbstractVirtualFileHandler)
{
AbstractVirtualFileHandler aPeer =(AbstractVirtualFileHandler) peer;
URL realUrl = aPeer.getLocalVFSContext().getRoot().getRealURL();
String urlStr = realUrl.toExternalForm();
if (urlStr.endsWith("!/"))
return new URL(urlStr + aPeer.getLocalPathName());
else
return realUrl;
}
throw new RuntimeException("Operation not supported for handler: " + this);