/** * Method that will construct a new instance that uses specified serialization view for * serialization (with null basically disables view processing) * * <p>Note that the method does NOT change state of this reader, but rather construct and returns * a newly configured instance. */ public ObjectWriter withView(Class<?> view) { SerializationConfig newConfig = _config.withView(view); return (newConfig == _config) ? this : new ObjectWriter(this, newConfig); }