dosysparameter.java
来自「dgbas公文管理核心java源码」· Java 代码 · 共 42 行
JAVA
42 行
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 + =
减小字号Ctrl + -
显示快捷键?