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

📄 configreader.java

📁 用JAVA开发的提醒精灵
💻 JAVA
字号:
package com.liming.remind.common;


import java.io.FileInputStream;
import java.util.Properties;


/**
 * Function : Read configuration from a file
 * 
 * @author Liming
 * @time Dec 23, 2008 7:19:38 PM
 * @version 1.0
 */
public class ConfigReader {

    private Properties p;

    public ConfigReader() {
        p = new Properties();
        try {
            // To load the input stream
            // which parameter is properties file
            p.load(new FileInputStream("res\\config.properties"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    /**
     * Function : Get Remind Kind
     * 
     * @return
     */
    public String getRemindKind() {
        return p.getProperty("kind");
    }
}

⌨️ 快捷键说明

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