core/src/main/java/org/apache/commons/vfs2/provider/url/UrlFileNameParser.java
/**
     * Guess is the given filename is a url with host or not. VFS treats such urls differently.<br />
     * A filename is url-based if the base is a <code>URLFileName</code> or there are only 2 slashes
     * after the scheme.<br/>
     * e.g: http://host/path, file:/path/to/file, file:///path/to/file
     *
     */
Guess is the given filename is a url with host or not.
Guess is the given filename is a url with host or not .
protected boolean isUrlBased(final FileName base, final String filename)
    {
        if (base instanceof URLFileName)
        {
            return true;
        }
        int nuofSlash = countSlashes(filename);
        return nuofSlash == 2;
    }
protected boolean isUrlBased ( final FileName base , final String filename ) { if ( base instanceof URLFileName ) { return true ; } int nuofSlash = countSlashes ( filename ) ; return nuofSlash == 2 ; }
Guess is the given filename is a url with host or not.
Guess is the given filename is a url with host or not .