@Override
    public boolean isFile() {
        try {
            URL url = getURL();
            if (url.getProtocol().startsWith(ResourceUtils.URL_PROTOCOL_VFS)) {
                return VfsResourceDelegate.getResource(url).isFile();
            }
            return ResourceUtils.URL_PROTOCOL_FILE.equals(url.getProtocol());
        } catch (IOException ex) {
            return false;
        }
    }
Abstract base class for resources which resolve URLs into File references,
such as {link UrlResource} or {link ClassPathResource}.

<p>Detects the "file" protocol as well as the JBoss "vfs" protocol in URLs,
resolving file system references accordingly.

@author Juergen Hoeller
@since 3.0
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/AbstractFileResolvingResource.java