net.sourceforge.cobertura.util

Class ArchiveUtil


public abstract class ArchiveUtil
extends java.lang.Object

Utility methods for working with archives.
Author:
John Lewis

Method Summary

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).

Method Details

isArchive

public static boolean isArchive(String name)
Return true if the given name ends with .jar, .zip, .war, .ear, or .sar (case insensitive).
Parameters:
name - The file name.
Returns:
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).
Parameters:
name - The file name. Commonly a ZipEntry name.
Returns:
true if the name is a signature file.