Package cern.accsoft.steering.jmad.util
Class ZipUtil
- java.lang.Object
-
- cern.accsoft.steering.jmad.util.ZipUtil
-
public final class ZipUtil extends java.lang.Object
some utility methods for zip files
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Collection<java.lang.String>
getFileNames(java.io.File zipFile, java.util.regex.Pattern pattern)
searches for all filenames that match the given regex-patternstatic java.util.Collection<java.lang.String>
getFileNames(java.util.zip.ZipFile zipFile, java.util.regex.Pattern pattern)
-
-
-
Method Detail
-
getFileNames
public static java.util.Collection<java.lang.String> getFileNames(java.io.File zipFile, java.util.regex.Pattern pattern)
searches for all filenames that match the given regex-pattern- Parameters:
zipFile
- the zip file in which to searchpattern
- the pattern to search for- Returns:
- all the filenames that match the pattern
-
getFileNames
public static java.util.Collection<java.lang.String> getFileNames(java.util.zip.ZipFile zipFile, java.util.regex.Pattern pattern)
-
-