本文整理匯總了Java中org.codehaus.jackson.JsonParser.Feature方法的典型用法代碼示例。如果您正苦於以下問題:Java JsonParser.Feature方法的具體用法?Java JsonParser.Feature怎麽用?Java JsonParser.Feature使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.codehaus.jackson.JsonParser
的用法示例。
在下文中一共展示了JsonParser.Feature方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: configureFeature
import org.codehaus.jackson.JsonParser; //導入方法依賴的package包/類
private void configureFeature(Object feature, boolean enabled) {
if (feature instanceof JsonParser.Feature) {
this.objectMapper.configure((JsonParser.Feature) feature, enabled);
}
else if (feature instanceof JsonGenerator.Feature) {
this.objectMapper.configure((JsonGenerator.Feature) feature, enabled);
}
else if (feature instanceof SerializationConfig.Feature) {
this.objectMapper.configure((SerializationConfig.Feature) feature, enabled);
}
else if (feature instanceof DeserializationConfig.Feature) {
this.objectMapper.configure((DeserializationConfig.Feature) feature, enabled);
}
else {
throw new IllegalArgumentException("Unknown feature class: " + feature.getClass().getName());
}
}
示例2: configure
import org.codehaus.jackson.JsonParser; //導入方法依賴的package包/類
public ObjectMapper configure(JsonParser.Feature paramFeature, boolean paramBoolean)
{
this._jsonFactory.configure(paramFeature, paramBoolean);
return this;
}
示例3: disable
import org.codehaus.jackson.JsonParser; //導入方法依賴的package包/類
public JsonParser disable(JsonParser.Feature paramFeature)
{
this.delegate.disable(paramFeature);
return this;
}
示例4: enable
import org.codehaus.jackson.JsonParser; //導入方法依賴的package包/類
public JsonParser enable(JsonParser.Feature paramFeature)
{
this.delegate.enable(paramFeature);
return this;
}
示例5: isEnabled
import org.codehaus.jackson.JsonParser; //導入方法依賴的package包/類
public boolean isEnabled(JsonParser.Feature paramFeature)
{
return this.delegate.isEnabled(paramFeature);
}