/**
  * Method that will construct a new instance that uses specified default {@link Base64Variant} for
  * base64 encoding
  *
  * @since 2.1
  */
 public ObjectWriter with(Base64Variant b64variant) {
   SerializationConfig newConfig = _config.with(b64variant);
   return (newConfig == _config) ? this : new ObjectWriter(this, newConfig);
 }
 public ObjectWriter with(TimeZone tz) {
   SerializationConfig newConfig = _config.with(tz);
   return (newConfig == _config) ? this : new ObjectWriter(this, newConfig);
 }
 public ObjectWriter with(Locale l) {
   SerializationConfig newConfig = _config.with(l);
   return (newConfig == _config) ? this : new ObjectWriter(this, newConfig);
 }
 /**
  * Fluent factory method that will construct a new writer instance that will use specified date
  * format for serializing dates; or if null passed, one that will serialize dates as numeric
  * timestamps.
  *
  * <p>Note that the method does NOT change state of this reader, but rather construct and returns
  * a newly configured instance.
  */
 public ObjectWriter with(DateFormat df) {
   SerializationConfig newConfig = _config.with(df);
   return (newConfig == _config) ? this : new ObjectWriter(this, newConfig);
 }
 /** Method for constructing a new instance that is configured with specified features enabled. */
 public ObjectWriter with(SerializationFeature first, SerializationFeature... other) {
   SerializationConfig newConfig = _config.with(first, other);
   return (newConfig == _config) ? this : new ObjectWriter(this, newConfig);
 }
 /** Method for constructing a new instance that is configured with specified feature enabled. */
 public ObjectWriter with(SerializationFeature feature) {
   SerializationConfig newConfig = _config.with(feature);
   return (newConfig == _config) ? this : new ObjectWriter(this, newConfig);
 }