Here you can find the source of isLocalFile(String path)
public static boolean isLocalFile(String path)
//package com.java2s; //License from project: Apache License import java.io.File; public class Main { public static boolean isLocalFile(String path) { return new File(path).exists(); }/* w w w .j a v a2 s . com*/ }