- 浏览: 3678 次
- 性别:
- 来自: 上海
最新评论
-
lhforever1212:
谢谢分享,很好用的代码!
Pinyin4j
文章列表
this.productcode = new String(productcode.getBytes("ISO-8859-1"), "GBK");
import java.security.Key;
import java.security.Security;
import javax.crypto.Cipher;
public class EncryptionDecryption {
private static String strDefaultKey = "tourhb";
/** 加密工具 */
private Cipher encryptCipher = null;
/** 解密工具 */
private Cipher decry ...
java汉字转拼音操作工具类
import net.sourceforge.pinyin4j.PinyinHelper;
import net.sourceforge.pinyin4j.format.HanyuPinyinCaseType;
import net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat;
import net.sourceforge.pinyin4j.format.HanyuPinyinToneType;
import net.sourceforge.pinyin4j.format.exception.Ba ...
枚举定义如下:
/**
* 交易状态
* @author systex
*
*/
public enum TransactionStateEnum {
DSS(0,"待送审"),
DQS(3,"待清算"),
QSBCG(4,"清算不成功"),
QSCG(5,"清算成功"),
HBBCG(6,"划拨不成功"),
HBCG(7,"划拨成功");
//索引
private int index;
...