⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 encoding.java

📁 USB设计的一些源码!适合与USB开发的同学!还是蛮不错的!我用过一些!
💻 JAVA
字号:
/*
 * Created on 2005-8-5
 *
 */
package banksystem;
import banksystem.Constants;
/**
 * @author 曲本盛
 *
 * TODO Struts 项目实践
 */
public class Encoding {
	public static String CNtoISO(String str){
		String temp = "";
		try{
		temp = new String(str.getBytes(Constants.ISO_ENCODING),Constants.CN_ENODING);
		}
		catch(Exception e){
			throw new RuntimeException(e);
		}
		return temp;
	}
	public static String ISOtoCN(String str){
		String temp = "";
		try{
		temp = new String(str.getBytes(Constants.CN_ENODING),Constants.ISO_ENCODING);
		}
		catch(Exception e){
			throw new RuntimeException(e);
		}
		return temp;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -