Code example for URLConnection

Methods: getLastModified

0
            return ((Resource) getCheckedRef()).getLastModified(); 
        } 
        if (!isExists(false)) { 
            return 0L; 
        } 
        return conn.getLastModified();
    } 
 
    /** 
     * Tells if the resource is a directory. 
     * @return boolean whether the resource is a directory. 
     */ 
    public synchronized boolean isDirectory() { 
        return isReference() 
            ? ((Resource) getCheckedRef()).isDirectory() 
            : getName().endsWith("/");
    } 
 
    /** 
     * Get the size of this Resource. 
     * @return the size, as a long, 0 if the Resource does not exist (for