public boolean exists() { return getUrl() != null; }
public String getLocationOnDisk() { URL url = getUrl(); if (url == null) { throw new ClassPathScanException("Unable to location resource on disk: " + location); } try { return new File(URLDecoder.decode(url.getPath(), "UTF-8")).getAbsolutePath(); } catch (UnsupportedEncodingException e) { throw new ClassPathScanException("Unknown encoding: UTF-8", e); } }