示例#1
0
 /**
  * Method for disabling specified generator feature (check {@link JsonGenerator.Feature} for list
  * of features)
  */
 public JsonFactory disable(JsonGenerator.Feature f) {
   _generatorFeatures &= ~f.getMask();
   return this;
 }
示例#2
0
 /** Check whether specified generator feature is enabled. */
 public final boolean isEnabled(JsonGenerator.Feature f) {
   return (_generatorFeatures & f.getMask()) != 0;
 }
示例#3
0
 /**
  * Method for enabling specified generator features (check {@link JsonGenerator.Feature} for list
  * of features)
  */
 public JsonFactory enable(JsonGenerator.Feature f) {
   _generatorFeatures |= f.getMask();
   return this;
 }