Java URL Value Check isFile(URL url)

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

Description

is File

License

Apache License

Declaration

public static boolean isFile(URL url) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.net.URL;

public class Main {
    public static boolean isFile(URL url) {
        return (url != null) && ((url.getProtocol().equals("file")) || (url.getProtocol().equals("vfsfile")));
    }//from   ww w . j a v a2  s.  co m
}

Related

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