package com.ttj.supplier.utils; public class TextUtils { /** * 判断是否为空(包括空格,转义字符) * * @param cs * @return boolean */ public static boolean isBlank(CharSequence cs) { int strLen; if ((cs == null) || ((strLen = cs.length()) == 0)) return true; for (int i = 0; i < strLen; i++) { if (!Character.isWhitespace(cs.charAt(i))) { return false; } } return true; } }