Example #1
0
 public Object getPropertyAsObject(StringProperty stringproperty) {
   String s = getProperty(stringproperty);
   if (s.length() > 0) {
     return SerializerUtils.decodeJavaObjectFromStringBase64(s);
   } else {
     return null;
   }
 }
Example #2
0
 public void setPropertyWithObject(StringProperty stringproperty, Serializable serializable)
     throws IOException {
   if (serializable != null) {
     String s = SerializerUtils.encodeObjectBase64(serializable, false);
     if (s != null) setProperty(stringproperty, s);
   } else {
     throw new IOException("Error encoding object: " + serializable);
   }
 }