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