List of utility methods to do File Type Check
boolean | isAttacheFile(String fileName) is Attache File return checkExtFile(ATTACHE_FILE_EXT, fileName);
|
boolean | isExeFile(String fileName) is Exe File return checkExtFile(EXE_FILE_EXT, fileName);
|
boolean | isForbidFile(String fileName) is Forbid File return checkExtFile(FORBID_FILE_EXT, fileName);
|
boolean | isImage(String fileName) is Image String extension = getFileExtension(fileName.toLowerCase()); return "jpg".equals(extension) || "jpeg".equals(extension) || "gif".equals(extension) || "png".equals(extension) || "bmp".equals(extension) || "icon".equals(extension); |
boolean | isImgageFile(String fileName) is Imgage File return checkExtFile(IMAGE_FILE_EXT, fileName);
|