163164165166167168169170171172
// would return if (object == null) return "<null/>"; synchronized (object) { StringWriter sw = new StringWriter(); CompactWriter compact = new CompactWriter(sw); xstream().marshal(object, compact); return sw.toString(); } }
197198199200201202203204205
} catch (IOException e) { throw Utils.runtime(e); } } synchronized (object) { CompactWriter compact = new CompactWriter(writer); xstream().marshal(object, compact); } }