net.sourceforge.cobertura.util
Class ArchiveUtil

java.lang.Object
  extended by net.sourceforge.cobertura.util.ArchiveUtil

public abstract class ArchiveUtil
extends java.lang.Object

Utility methods for working with archives.

Author:
John Lewis

Constructor Summary
ArchiveUtil()
           
 
Method Summary
static boolean isArchive(java.lang.String name)
          Return true if the given name ends with .jar, .zip, .war, .ear, or .sar (case insensitive).
static boolean isSignatureFile(java.lang.String name)
          Check to see if the given file name is a signature file (meta-inf/*.rsa or meta-inf/*.sf).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchiveUtil

public ArchiveUtil()
Method Detail

isArchive

public static boolean isArchive(java.lang.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(java.lang.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.