From 75c17b372e7e822489fed9289b3207e185480cb2 Mon Sep 17 00:00:00 2001 From: wentch <22250530@qq.com> Date: Wed, 6 Jan 2016 16:05:36 +0800 Subject: [PATCH] --- convert.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/convert.html b/convert.html index 891f8b22f..5b4d16a44 100644 --- a/convert.html +++ b/convert.html @@ -150,6 +150,7 @@ }

      Convert 支持自定义Decode、Encode。

+

      通过Factory显著注册:

public class FileSimpleCoder<R extends Reader, W extends Writer> extends SimpledCoder<R, W, File> {
 
     public static final FileSimpleCoder instance = new FileSimpleCoder();
@@ -173,7 +174,8 @@
 
 BsonFactory.root().register(java.io.File.class, FileSimpleCoder.instance);
                 
- + +

      通过JavaBean类自定义:

public class InnerCoderEntity {
 
     private final String val;