Java URL Value Check isFileURL(URL repositoryURL)

Here you can find the source of isFileURL(URL repositoryURL)

Description

is File URL

License

Open Source License

Declaration

public static boolean isFileURL(URL repositoryURL) 

Method Source Code

//package com.java2s;
//                    "/**\n" +
//                            " * ====================================================================\n" +
//                            " *             DBCLient yet another Jdbc client tool\n" +
//                            " *\n" +//from www . jav a2 s . co  m
//                            " * DBClient is a new Open Source Tool for connecting to jdbc\n" +
//                            " * compliant relational databases. Specific extensions will take care of\n" +
//                            " * each RDBMS implementation.\n" +
//                            " *\n" +
//                            " * Copyright (C) 2006-2007 Taha BEN SALAH\n" +
//                            " *\n" +
//                            " * This program is free software; you can redistribute it and/or modify\n" +
//                            " * it under the terms of the GNU General Public License as published by\n" +
//                            " * the Free Software Foundation; either version 2 of the License, or\n" +
//                            " * (at your option) any later version.\n" +
//                            " *\n" +
//                            " * This program is distributed in the hope that it will be useful,\n" +
//                            " * but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +
//                            " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n" +
//                            " * GNU General Public License for more details.\n" +
//                            " *\n" +
//                            " * You should have received a copy of the GNU General Public License along\n" +
//                            " * with this program; if not, write to the Free Software Foundation, Inc.,\n" +
//                            " * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n" +
//                            " * ====================================================================\n" +
//                            " */\n" +

import java.net.URL;

public class Main {
    public static boolean isFileURL(URL repositoryURL) {
        return "file".equalsIgnoreCase(repositoryURL.getProtocol());
    }
}

Related

  1. isFile(URL url)
  2. isFileInJar(URL resource)
  3. isFileResource(URL resource)
  4. isFileSpecified(URL url)
  5. isFileURL(String path)
  6. isFileURL(URL url)
  7. isFileURL(URL url)
  8. isFileURL(URL url)
  9. isFileURL(URL url)