public static String getAllProperties() { Enumeration<String> records = myProp.keys(); StringBuffer s = new StringBuffer(); try { while (records.hasMoreElements()) { String key = records.nextElement(); String value = myProp.getProperty(key); s.append(key); s.append(" :"); s.append(value); s.append("\n"); } } catch (Exception e) { e.printStackTrace(); } return s.toString(); }
public static String getProperty(String pty) { String rtsStr = ""; rtsStr = myProp.getProperty(pty); if (rtsStr == null) { return ""; } else { return rtsStr; } }