Here you can find the source of isFileURL(URL url)
Parameter | Description |
---|---|
url | a parameter |
public static boolean isFileURL(URL url)
//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()); } }