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;