org.jbehave.core.io
Class JarFileScanner

java.lang.Object
  extended by org.jbehave.core.io.JarFileScanner

public class JarFileScanner
extends Object

Find all matching file entries in a jar.


Constructor Summary
JarFileScanner(String jarPath, List<String> includes, List<String> excludes)
           
JarFileScanner(String jarPath, String includes, String excludes)
           
JarFileScanner(URL jarURL, List<String> includes, List<String> excludes)
           
JarFileScanner(URL jarURL, String includes, String excludes)
           
 
Method Summary
 List<String> scan()
          Scans the jar file and returns the paths that match the includes and excludes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JarFileScanner

public JarFileScanner(String jarPath,
                      String includes,
                      String excludes)

JarFileScanner

public JarFileScanner(String jarPath,
                      List<String> includes,
                      List<String> excludes)

JarFileScanner

public JarFileScanner(URL jarURL,
                      String includes,
                      String excludes)

JarFileScanner

public JarFileScanner(URL jarURL,
                      List<String> includes,
                      List<String> excludes)
Method Detail

scan

public List<String> scan()
Scans the jar file and returns the paths that match the includes and excludes.

Returns:
A List of paths
Throws:
An - IllegalStateException when an I/O error occurs in reading the jar file.


Copyright © 2003-2012. All Rights Reserved.