|
@@ -64,6 +64,10 @@ public class ExcelUtil {
|
|
return StrUtil.isNotBlank(fileName) && (fileName.endsWith("rar") || fileName.endsWith("RAR"));
|
|
return StrUtil.isNotBlank(fileName) && (fileName.endsWith("rar") || fileName.endsWith("RAR"));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static boolean isImage(String fileName) {
|
|
|
|
+ return StrUtil.isNotBlank(fileName) && (fileName.endsWith("jpg") || fileName.endsWith("JPG") || fileName.endsWith("PNG") || fileName.endsWith("png"));
|
|
|
|
+ }
|
|
|
|
+
|
|
public static Sheet getSheet(File file, int sheetIndex) {
|
|
public static Sheet getSheet(File file, int sheetIndex) {
|
|
if (file == null || !file.exists()) {
|
|
if (file == null || !file.exists()) {
|
|
return null;
|
|
return null;
|