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