📄 dosysparameter.java
字号:
package com.jasson.common;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
*/
import java.util.*;
import java.io.*;
import java.sql.*;
public class DoSysParameter {
public static boolean load = false;
private static Properties propSysParameter = new Properties();
String errMsg="";
int errCode=0;
public DoSysParameter() {
if (!load) load();
}
public static void load() {
try {
String filePathName = com.jasson.common.DoSysParameter.class.getResource("SysParameter.properties").getFile();
System.out.println("FilePath:"+filePathName);
//File file = new File(inc.GenFun.class.getResource("DoNo.properties").getFile());
//propSysParameter.load(new FileInputStream(file));
BufferedReader br = new BufferedReader(new FileReader(filePathName));
String str="";
int pos=0;
while (br.ready())
{
str = br.readLine();
pos = str.indexOf("=");
try {
if (pos>0&&str.length()>pos)
propSysParameter.put(str.substring(0,pos).trim(),str.substring(pos+1,str.length()).trim());
}
catch (Exception ex) {
System.out.println("ゅン
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -