public class AttachFilter
extends java.lang.Object
JAR
and ZIP
files.Constructor and Description |
---|
AttachFilter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
inspect(java.io.File f,
java.lang.String supportedExtList)
This method inspects the
JAR or ZIP file content to see if it contains any unsupported
file extensions. |
public static java.lang.String inspect(java.io.File f, java.lang.String supportedExtList)
JAR
or ZIP
file content to see if it contains any unsupported
file extensions.f
- The uploaded file which is of JAR
or ZIP
format.supportedExtList
- The list of supported file extensions in String
format.JAR
or ZIP
file which is not supported.