|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.net.mime.SafeFileExtensions
public class SafeFileExtensions
SafeFileExtensions.
A safe file extension is one which can presumably be opened with minimal danger of viral infection, etc. This static class allows querying and modification of a list of safe file extensions.
Method Summary | |
---|---|
static void |
addExtension(java.lang.String extension)
Add extension to safe list. |
static void |
addExtensions(java.lang.String[] extensions)
Add multiple extensions to safe list. |
static boolean |
isExtensionSafe(java.lang.String extension)
Is extension safe? |
static void |
removeExtension(java.lang.String extension)
Remove extension from safe list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addExtension(java.lang.String extension)
extension
- The extension. public static void addExtensions(java.lang.String[] extensions)
extensions
- The extensions. public static void removeExtension(java.lang.String extension)
extension
- The extension public static boolean isExtensionSafe(java.lang.String extension)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |