That would be a question for Greg - who left to go skiing this morning - tough life! :
 
 

    /* ------------------------------------------------------------ */
    /**
     * Returns an File representing the given resource or NULL if this
     * is not possible.
     */
    public File getFile()
        throws IOException
    {
        // Try the permission hack
        if (checkConnection())
        {
            Permission perm = _connection.getPermission();
            if (perm instanceof java.io.FilePermission)
                return new File(perm.getName());
        }

        // Try the URL file arg
        try {return new File(_url.getFile());}
        catch(Exception e) {Code.ignore(e);}

        // Don't know the file
        return null;
    }
 
 

Jules
 
 

Jason Dillon wrote:

Just wondering, but why not use URLConnection.getURL().getFile() instead of URLConnection.getPermssion() ?

--jason
_________________________________________________________
View thread online: http://main.jboss.org/thread.jsp?forum=66&thread=12217

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to