Code example for URLConnection

Methods: getLastModified

            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. 
Stop searching for code, let great code find you!  Add Codota to your java IDE