| |
|
| java.lang.Object net.sf.javaguard.JarFileContainer
JarFileContainer | public class JarFileContainer implements FileContainer(Code) | | The purpose of a FileContainer is to ease the handling of a list of files
created either from the entries of a Jar file or from the contents of a
local directory that match a given regular expression.
author: Thorsten Heit |
Constructor Summary | |
public | JarFileContainer(JarFile jarFile) Creates a new file container to manage the contents of a Jar file. |
JarFileContainer | public JarFileContainer(JarFile jarFile)(Code) | | Creates a new file container to manage the contents of a Jar file.
Parameters: jarFile - the Jar file |
enumeration | public Enumeration enumeration()(Code) | | Returns an enumeration of the elements of the file container. The
nextElement() method of such an enumeration must return a
subclass of
FileEntry .
an enumeration of the elements of the file container |
getFileNameSet | public SortedSet getFileNameSet()(Code) | | Returns a sorted set of the file names in this file container. Each
element in the set must be a string in which packages/directories are
separated by "/".
a sorted set of file names; must not be null |
getName | public String getName()(Code) | | Returns the name for the file container. Either the name of the Jar file
or the name of the local directory.
the name for the file container |
removeDuplicates | public void removeDuplicates(FileContainer fileContainer)(Code) | | Removes file entries in the current file container that are already
contained in the given file container.
Parameters: fileContainer - the file container to compare to |
|
|
|