org.eclipse.emf.test.build
Interface FileTool.IZipFilter

Enclosing class:
FileTool

public static interface FileTool.IZipFilter

A zip filter which is used to filter out unwanted entries while extracting a zip file.

See Also:
FileTool.unzip(IZipFilter, ZipFile, File, File, int)

Method Summary
 boolean shouldExtract(java.lang.String fullEntryName, java.lang.String entryName, int depth)
          Returns a boolean indicating whether the entry with the specified name should be extracted from the zip file.
 boolean shouldUnzip(java.lang.String fullEntryName, java.lang.String entryName, int depth)
          Returns a boolean indicating whether the entry (which is a zip/jar file) with the specified name should be extracted from the zip file and then unzipped.
 

Method Detail

shouldExtract

boolean shouldExtract(java.lang.String fullEntryName,
                      java.lang.String entryName,
                      int depth)
Returns a boolean indicating whether the entry with the specified name should be extracted from the zip file.

Parameters:
fullEntryName - the full entry name; includes full path segments for nested zip entries
entryName - the partial entry name; only includes path segments from the currect zip entry
depth - a number greater than or equal to zero which specifies the depth of the current nested zip entry
Returns:
a boolean indicating whether the entry with the specified name should be extracted from the zip file

shouldUnzip

boolean shouldUnzip(java.lang.String fullEntryName,
                    java.lang.String entryName,
                    int depth)
Returns a boolean indicating whether the entry (which is a zip/jar file) with the specified name should be extracted from the zip file and then unzipped.

Parameters:
fullEntryName - the full entry name; includes full path segments for nested zip entries
entryName - the partial entry name; only includes path segments from the currect zip entry
depth - a number greater than or equal to zero which specifies the depth of the current nested zip entry
Returns:
a boolean indicating whether the entry (which is a zip/jar file) with the specified name should be extracted from the zip file and then unzipped

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.