Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
common
Commits
36fdc579
Commit
36fdc579
authored
Apr 18, 2019
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加个方法
parent
a1b09fa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
StringUtil.java
src/main/java/com/egolm/common/StringUtil.java
+31
-0
No files found.
src/main/java/com/egolm/common/StringUtil.java
View file @
36fdc579
...
...
@@ -1106,4 +1106,35 @@ public class StringUtil {
return
Hex
.
encodeHexString
(
bytes
);
}
/**
*
* @描述:是否是2003的excel,返回true是2003
*
*
* @参数:@param filePath 文件完整路径
*
* @参数:@return
*
* @返回值:boolean
*/
public
static
boolean
isExcel2003
(
String
filePath
){
return
filePath
.
matches
(
"^.+\\.(?i)(xls)$"
);
}
/**
*
* @描述:是否是2007的excel,返回true是2007
*
*
* @参数:@param filePath 文件完整路径
*
* @参数:@return
*
* @返回值:boolean
*/
public
static
boolean
isExcel2007
(
String
filePath
){
return
filePath
.
matches
(
"^.+\\.(?i)(xlsx)$"
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment