Java URL Value Check isFile(URL url)

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

Description

is File

License

Open Source License

Declaration

public static boolean isFile(URL url) 

Method Source Code

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

import java.net.URL;

public class Main {
    private static final String URL_PROTOCOL_FILE = "file";

    public static boolean isFile(URL url) {
        return url != null && url.getProtocol().equals(URL_PROTOCOL_FILE);
    }//  w w  w .  jav a2 s. c  o  m
}

Related

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