类 org.test4j.json.helper.JSONFeature
的使用

使用 JSONFeature 的软件包
org.test4j.json   
org.test4j.json.encoder   
org.test4j.json.helper   
 

org.test4j.jsonJSONFeature 的使用
 

参数类型为 JSONFeatureorg.test4j.json 中的方法
static String JSON.toJSON(Object object, JSONFeature... features)
          将对象编码为json串
 

org.test4j.json.encoderJSONFeature 的使用
 

参数类型为 JSONFeatureorg.test4j.json.encoder 中的方法
 void JSONEncoder.setFeatures(JSONFeature... jsonFeatures)
           
 

org.test4j.json.helperJSONFeature 的使用
 

返回 JSONFeatureorg.test4j.json.helper 中的方法
static JSONFeature JSONFeature.valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static JSONFeature[] JSONFeature.values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 

返回变量类型为 JSONFeature 的类型的 org.test4j.json.helper 中的方法
static List<JSONFeature> JSONFeature.getSerializerFeatures(int features)
          根据掩码值返回特性列表
 

参数类型为 JSONFeatureorg.test4j.json.helper 中的方法
static int JSONFeature.getFeaturesMask(JSONFeature... features)
          返回特性值的掩码
static boolean JSONFeature.isEnabled(int features, JSONFeature feature)
          根据掩码值判断某个特性是否有效
 



Copyright © 2013. All rights reserved.