去除字符串中的空格、回车、换行符、制表符 @param content 内容 @return
(String content)
| 217 | * @return |
| 218 | */ |
| 219 | public static String replaceBlank(String content) { |
| 220 | String dest = ""; |
| 221 | if (content != null) { |
| 222 | Pattern p = Pattern.compile("\\s*|\t|\r|\n"); |
| 223 | Matcher m = p.matcher(content); |
| 224 | dest = m.replaceAll(""); |
| 225 | } |
| 226 | return dest; |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * 移除UTF-8BOM 标志 |
nothing calls this directly
no outgoing calls
no test coverage detected