public void setNewValue(Object value) { setNewValues(NSPropertyListSerialization.stringFromPropertyList(value)); } }
public void setOldValue(Object value) { setOldValues(NSPropertyListSerialization.stringFromPropertyList(value)); }
public Object marshall(SerializerState state, Object p, Object o) throws MarshallException { try { String bytes; if (o instanceof NSData) { bytes = NSPropertyListSerialization.stringFromPropertyList(o); } else { throw new MarshallException("cannot marshall date using class " + o.getClass()); } JSONObject obj = new JSONObject(); if (ser.getMarshallClassHints()) { obj.put("javaClass", o.getClass().getName()); } obj.put("bytes", bytes); return obj; } catch (JSONException e) { throw new MarshallException("Failed to marshall NSData.", e); } } }
protected String encodedValue(Object value) { EOKeyValueArchiver archiver = new EOKeyValueArchiver(); archiver.encodeObject(value,VALUE); String encodedValue = NSPropertyListSerialization.stringFromPropertyList(archiver.dictionary()); return encodedValue; }
NSLog.out.appendln("Updating H2JDBCInfo.plist enabled:" + property); try { String jdbcInfoContent = NSPropertyListSerialization.stringFromPropertyList(super.jdbcInfo()); File tmpDir = new File(System.getProperty("java.io.tmpdir")); File jdbcInfoFile = new File(tmpDir, "H2JDBCInfo.plist");