Exemple #1
0
 protected static String toXml(Object object, Writer writer) {
   serializeNull(object);
   return serializing(object, DocWorkerFactory.createXmlWriter(writer));
 }
Exemple #2
0
 protected static Object fromXml(Reader reader, Class<?> clz, Object object) {
   return deserializing(DocWorkerFactory.createXmlReader(reader), clz, object);
 }
Exemple #3
0
 protected static String toAny(Object object, String docTypeName, Writer writer) {
   missDocTypeName(docTypeName);
   serializeNull(object);
   return serializing(object, DocWorkerFactory.createAnyWriter(writer, docTypeName));
 }
Exemple #4
0
 protected static Object fromAny(Reader reader, String docTypeName, Class<?> clz, Object object) {
   missDocTypeName(docTypeName);
   return deserializing(DocWorkerFactory.createAnyReader(reader, docTypeName), clz, object);
 }