1
Text
Calvin Xiao edited this page 2017-01-20 15:53:46 +08:00
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#文本操作

##1. 字符串操作

Apache Commons Lang的StringUtils有各家里最全面的NullSafe的String工具函数。

SpringSide提供了MoreStringUtil, 找出一些能进一步优化性能的场合。

##2. 转义与编码 EscapeUtil, 封装Apache Commons Lang提供XML/HTML的编码,JDK提供URL的编码。

EncodesUtil, 封装Guava提供的Base64, Base64URLSafe,Hex编码,避免再引入Common-Codec等三方包。

##3. JSON处理

##4. 文本合法性校验

##5. 文本哈希

##6. CSV