edu.umd.cs.findbugs.util

Class Archive

public class Archive extends Object

Utility methods for working with zip/jar archives.

Author: David Hovemeyer

Field Summary
static Set<String>ARCHIVE_EXTENSION_SET
File extensions that indicate an archive (zip, jar, or similar).
Method Summary
static booleanisArchiveFileName(String fileName)
Determine whether or not the given filename appears to identify a zip/jar archive.

Field Detail

ARCHIVE_EXTENSION_SET

public static final Set<String> ARCHIVE_EXTENSION_SET
File extensions that indicate an archive (zip, jar, or similar).

Method Detail

isArchiveFileName

public static boolean isArchiveFileName(String fileName)
Determine whether or not the given filename appears to identify a zip/jar archive.

Parameters: fileName the filename

Returns: true if the filename appears to identify an archive, false otherwise

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.