org.ops4j.io
Class ZipLister

java.lang.Object
  extended by org.ops4j.io.ZipLister
All Implemented Interfaces:
Lister

public class ZipLister
extends Object
implements Lister

Implementation of lister that list content of a zip file.

Since:
September 04, 2007
Author:
Alin Dreghiciu

Constructor Summary
ZipLister(URL baseURL, Enumeration<? extends ZipEntry> zipEntries, Pattern filter)
          Creates a zip lister.
ZipLister(URL baseURL, Enumeration<? extends ZipEntry> zipEntries, Pattern[] includes, Pattern[] excludes)
          Creates a zip lister.
 
Method Summary
 List<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(URL baseURL,
                 Enumeration<? extends ZipEntry> zipEntries,
                 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

ZipLister

public ZipLister(URL baseURL,
                 Enumeration<? extends ZipEntry> zipEntries,
                 Pattern[] includes,
                 Pattern[] excludes)
Creates a zip lister.

Parameters:
baseURL - the url from which the zip file was created
zipEntries - the zip file to be listed.
includes - filters to be used to include entries from the directory
excludes - filters to be used to exclude entries from the directory
Method Detail

list

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

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


Copyright © 2006-2013 OPS4J - Open Participation Software for Java. All Rights Reserved.