All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.founder.core.utils.StringUtilsEx Maven / Gradle / Ivy

There is a newer version: 3.2.3.2
Show newest version
package com.founder.core.utils;

import org.apache.commons.lang3.StringUtils;

public class StringUtilsEx {

    //编码程序
    public static String encode64(String originStr, String baseTable)
    {
        if(StringUtils.isEmpty(originStr)||StringUtils.isEmpty(baseTable))
            return "";
        byte[] bytes = originStr.getBytes();
        String s="";
        for (int i = 0; i < bytes.length; i++) {
            s += String.format("%02X", bytes[i]);
        }
        int addnum = bytes.length %3;
        for(int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy