| |
|
| java.lang.Object net.sf.javaguard.LocalDirectoryFileContainer
LocalDirectoryFileContainer | public class LocalDirectoryFileContainer 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 |
LocalDirectoryFileContainer | public LocalDirectoryFileContainer(File dir, String regex) throws MalformedCachePatternException(Code) | | Creates a new instance of FileContainer to manage the contents of a local
directory.
Parameters: dir - the local directory Parameters: regex - a string with a regular expression throws: MalformedCachePatternException - if there is an error in compilingthe regular expression |
createFilename | static String createFilename(File file)(Code) | | Returns the name of the given file as a string. If possible the canonical
form is used, otherwise the absolute path name is returned.
Parameters: file - the file whose name should be returned the name of the given file as a string |
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 |
getManifest | public Manifest getManifest() throws IOException(Code) | | Returns the Manifest file for the LocalDirectoryFileContainer. This
function is currently not supported; it always returns null.
Manifest file; always null throws: IOException - if an I/O error occurs |
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 |
|
|
|