org.ops4j.pax.runner.scanner.dir.internal
Class ZipLister

java.lang.Object
  extended by org.ops4j.pax.runner.scanner.dir.internal.ZipLister
All Implemented Interfaces:
Lister

public class ZipLister
extends java.lang.Object
implements Lister

Implementation of lister that list content of a zip file.

Since:
September 04, 2007
Author:
Alin Dreghiciu

Constructor Summary
ZipLister(java.net.URL baseURL, java.util.Enumeration<? extends java.util.zip.ZipEntry> zipEntries, java.util.regex.Pattern filter)
          Creates a zip lister.
 
Method Summary
 java.util.List<java.net.URL> list()
          Returns a list of urls the lister knows about.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipLister

public ZipLister(java.net.URL baseURL,
                 java.util.Enumeration<? extends java.util.zip.ZipEntry> zipEntries,
                 java.util.regex.Pattern filter)
Creates a zip lister.

Parameters:
baseURL - the url from which the zip file was created
zipEntries - the zip file to be listed.
filter - filter to be used to filter entries from the zip
Method Detail

list

public java.util.List<java.net.URL> list()
                                  throws java.net.MalformedURLException
Returns a list of urls the lister knows about.

Specified by:
list in interface Lister
Returns:
list of urls
Throws:
java.net.MalformedURLException - If an underlying problem occurs in the OSGi framework.


Copyright © 2008. All Rights Reserved.