public static String getFileProtocol(String path)
public static String getFileProtocol(String url)
	public static String getFileProtocol(String path)	{		int fsIndex = Math.max(path.indexOf(File.separatorChar),			path.indexOf('/'));		if(fsIndex == 0) // /etc/passwd			return null;		else if(fsIndex == 2) // C:\AUTOEXEC.BAT			return null;		else if(fsIndex == -1)			fsIndex = path.length();		int cIndex = path.indexOf(':');		if(cIndex <= 1) // D:\WINDOWS			return null;		else if(cIndex > fsIndex) // /tmp/RTF::read.pm			return null;		return path.substring(0,cIndex);	}