Code example for Permission

Methods: getName

0
        // 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) {LogSupport.ignore(log,e);}
 
        // Don't know the file 
        return null;     
    } 
 
    /* ------------------------------------------------------------ */ 
    /** 
     * Returns the name of the resource 
     */ 
Connect your IDE to all the code out there  Get Codota for Java