net.sourceforge.cobertura.util
Class ArchiveUtil
java.lang.Object
net.sourceforge.cobertura.util.ArchiveUtil
Utility methods for working with archives.
static boolean | isArchive(String name) - Return true if the given name ends with .jar, .zip,
.war, .ear, or .sar (case insensitive).
|
static boolean | isSignatureFile(String name) - Check to see if the given file name is a signature file
(meta-inf/*.rsa or meta-inf/*.sf).
|
isArchive
public static boolean isArchive(String name)
Return true if the given name ends with .jar, .zip,
.war, .ear, or .sar (case insensitive).
- true if the name is an archive.
isSignatureFile
public static boolean isSignatureFile(String name)
Check to see if the given file name is a signature file
(meta-inf/*.rsa or meta-inf/*.sf).
name
- The file name. Commonly a ZipEntry name.
- true if the name is a signature file.