private String getComponentVarsSaveString() { String out = ""; for (String key : this.componentVars.keySet()) { String value = this.componentVars.get(key); String keyEncoded = new String(Base64Coder.encode(key.getBytes())); String valueEncoded = new String(Base64Coder.encode(value.getBytes())); out += keyEncoded + ":" + valueEncoded + ","; } return out; }
private String getSavedMessagesSaveString() { String out = ""; for (String message : this.savedMessages) { String msgEncoded = new String(Base64Coder.encode(message.getBytes())); out += msgEncoded + ","; } return out; }