Java URL Value Check isFileURL(URL url)

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

Description

is File URL

License

Open Source License

Parameter

Parameter Description
url a parameter

Declaration

public static boolean isFileURL(URL url) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.net.URL;

public class Main {
    /**// w w  w  . j ava2  s.  c  o  m
     * 
     */
    public static final String URL_PROTOCOL_FILE = "file";

    /**
     * 
     * @param url
     * @return
     */
    public static boolean isFileURL(URL url) {
        return URL_PROTOCOL_FILE.equals(url.getProtocol());
    }
}

Related

  1. isFileURL(String path)
  2. isFileURL(URL repositoryURL)
  3. isFileURL(URL url)
  4. isFileURL(URL url)
  5. isFileURL(URL url)
  6. isFileUrl(URL url)
  7. isFileURL(URL url)
  8. isFileURL(URL url)
  9. isFileURL(URL url)