dap4/d4lib/src/main/java/dap4/dap4lib/FileDSP.java
public boolean dspMatch(String location, DapContext context)
    {
        try {
            XURI xuri = new XURI(location);
            if(xuri.isFile()) {
                String path = xuri.getPath();
                for(String ext : EXTENSIONS) {
                    if(path.endsWith(ext))
                        return true;
                }
            }
        } catch (URISyntaxException use) {
            return false;
        }
        return false;
    }
public boolean dspMatch(String location, DapContext context)
    {
        try {
            XURI xuri = new XURI(location);
            if(xuri.isFile()) {
                String path = xuri.getPath();
                for(String ext : EXTENSIONS) {
                    if(path.endsWith(ext))
                        return true;
                }
            }
        } catch (URISyntaxException use) {
            return false;
        }
        return false;
    }
public boolean dspMatch ( String location , DapContext context ) { try { XURI xuri = new XURI ( location ) ; if ( xuri . isFile ( ) ) { String path = xuri . getPath ( ) ; for ( String ext : EXTENSIONS ) { if ( path . endsWith ( ext ) ) return true ; } } } catch ( URISyntaxException use ) { return false ; } return false ; }
A path is file if it has no base protocol or is file:

@param location file:/ or possibly an absolute path
@param context  Any parameters that may help to decide.
@return true if this path appears to be processible by this DSP
A path is file if it has no base protocol or is file :