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

java.lang.Object
  extended by org.gcube.common.scan.scanners.url.AbstractJarURLScanner
      extended by org.gcube.common.scan.scanners.url.JarFileScanner
All Implemented Interfaces:
URLScanner

public class JarFileScanner
extends AbstractJarURLScanner

Specialises AbstractJarURLScanner to file: URLs that refer to JAR files.

Author:
Fabio Simeoni

Constructor Summary
JarFileScanner()
           
 
Method Summary
 boolean handles(URL url)
          Returns true if this handler can scan a given URL.
protected  JarFile toFile(URL url)
           
 
Methods inherited from class org.gcube.common.scan.scanners.url.AbstractJarURLScanner
additional, scan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarFileScanner

public JarFileScanner()
Method Detail

handles

public boolean handles(URL url)
Description copied from interface: URLScanner
Returns true if this handler can scan a given URL.

Parameters:
url - the URL
Returns:
true if this handler can scan the URL

toFile

protected JarFile toFile(URL url)
                  throws Exception
Specified by:
toFile in class AbstractJarURLScanner
Throws:
Exception


Copyright © 2014. All Rights Reserved.