1 7 package fr.jayasoft.ivy.url; 8 9 import java.net.URL ; 10 11 public abstract class AbstractURLHandler implements URLHandler { 12 public boolean isReachable(URL url) { 13 return getURLInfo(url).isReachable(); 14 } 15 public boolean isReachable(URL url, int timeout) { 16 return getURLInfo(url, timeout).isReachable(); 17 } 18 public long getContentLength(URL url) { 19 return getURLInfo(url).getContentLength(); 20 } 21 public long getContentLength(URL url, int timeout) { 22 return getURLInfo(url, timeout).getContentLength(); 23 } 24 25 public long getLastModified(URL url) { 26 return getURLInfo(url).getLastModified(); 27 } 28 public long getLastModified(URL url, int timeout) { 29 return getURLInfo(url, timeout).getLastModified(); 30 } 31 } 32 | Popular Tags |