public static boolean hasText(String str) {
        if (!hasLength(str)) {
            return false;
        }
        int strLen = str.length();
        for (int i = 0; i < strLen; i++) {
            if (!Character.isWhitespace(str.charAt(i))) {
                return true;
            }
        }
        return false;
    }
@author Robert HG (254963746@qq.com) on 7/24/14.
lts-core/src/main/java/com/github/ltsopensource/core/commons/utils/StringUtils.java