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