package com.hxzkoa.util; import java.util.ResourceBundle; public class Config { private static ResourceBundle bundle = ResourceBundle.getBundle("configs"); String baowenSwitch; public static String getProperty(String key) { return bundle.getString(key); } public static String getCharset() { return getProperty("charset"); } public static String getBaowen1() { return getProperty("baowenPath"); } public static String getVersion() { return getProperty("version"); } public static String getMapPath() { return getProperty("mapPath"); } public static String getIconPath() { return getProperty("iconPath"); } public static String getPostUrl() { return getProperty("postUrl"); } public static String getUdpRunning() { return getProperty("udpRunning"); } public static String getMessagePath() { return getProperty("messagePath"); } public static String getDebugMessagePath() { return getProperty("debugMessagePath"); } public static String getZhuceMessagePath() { return getProperty("zhuceMessagePath"); } public static String getYuanshiMessagePath() { return getProperty("yuanshiMessagePath"); } public static String getUDPMessagePath() { return getProperty("UDPMessagePath"); } public static String getTCPMessagePath() { return getProperty("TCPMessagePath"); } public static String getMysqlMessagePath() { return getProperty("mysqlMessagePath"); } public static String getGasMessagePath() { return getProperty("gasMessagePath"); } public static String getHEXMessagePath() { return getProperty("HEXMessagePath"); } public static String getBaowenConfig() { return getProperty("baowenConfig"); } public static String getMapConfig() { return getProperty("mapConfig"); } public static String getPageConfig() { return getProperty("pageConfig"); } public static String getAnchorConfig() { return getProperty("anchorConfig"); } public static String getMysqlHost() { return getProperty("mysqlHost"); } public static String getMysqlPort() { return getProperty("mysqlPort"); } }