org.gcube.common.scan.scanners.url
Class AbstractJarURLScanner
java.lang.Object
org.gcube.common.scan.scanners.url.AbstractJarURLScanner
- All Implemented Interfaces:
- URLScanner
- Direct Known Subclasses:
- JarFileScanner, JarJarScanner
public abstract class AbstractJarURLScanner
- extends Object
- implements URLScanner
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.gcube.common.scan.scanners.url.URLScanner |
handles |
AbstractJarURLScanner
public AbstractJarURLScanner()
additional
public Set<URL> additional(URL url)
throws Exception
- Description copied from interface:
URLScanner
- Returns additional URLs to be scanned in addition to a given URL.
- Specified by:
additional in interface URLScanner
- Parameters:
url - the URL
- Returns:
- the additional URLs
- Throws:
Exception - if the additional URLs cannot be derived
scan
public Collection<ClasspathResource> scan(URL url)
throws Exception
- Description copied from interface:
URLScanner
- Scans a given
URL for ClasspathResources.
- Specified by:
scan in interface URLScanner
- Parameters:
url - the URL
- Returns:
- the scanned resources
- Throws:
Exception - if the URL cannot be scanned
toFile
protected abstract JarFile toFile(URL url)
throws Exception
- Throws:
Exception
Copyright © 2014. All Rights Reserved.