org.gcube.common.scan.scanners.url
Class AbstractJarURLScanner

java.lang.Object
  extended by org.gcube.common.scan.scanners.url.AbstractJarURLScanner
All Implemented Interfaces:
URLScanner
Direct Known Subclasses:
JarFileScanner, JarJarScanner

public abstract class AbstractJarURLScanner
extends Object
implements URLScanner


Constructor Summary
AbstractJarURLScanner()
           
 
Method Summary
 Set<URL> additional(URL url)
          Returns additional URLs to be scanned in addition to a given URL.
 Collection<ClasspathResource> scan(URL url)
          Scans a given URL for ClasspathResources.
protected abstract  JarFile toFile(URL url)
           
 
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
 

Constructor Detail

AbstractJarURLScanner

public AbstractJarURLScanner()
Method Detail

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.