{
return file.startsWith("http://") || file.startsWith("https://");
}
-
/**
* wrapper to get/post to a URL or check headers
+ *
* @param url
* @param ids
* @param readTimeout
* @throws IOException
* @throws ProtocolException
*/
- public static boolean checkUrlAvailable(URL url,
- int readTimeout) throws IOException, ProtocolException
+ public static boolean checkUrlAvailable(URL url, int readTimeout)
+ throws IOException, ProtocolException
{
// System.out.println(System.currentTimeMillis() + " " + url);