/** * Method that will construct a new instance that uses specific format schema * for serialization. *<p> * Note that method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectWriter with(FormatSchema schema) { GeneratorSettings genSet = _generatorSettings.with(schema); if (genSet == _generatorSettings) { return this; } _verifySchemaType(schema); return _new(genSet, _prefetch); }
/** * Method that will construct a new instance that uses specific format schema * for serialization. *<p> * Note that method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectWriter with(FormatSchema schema) { GeneratorSettings genSet = _generatorSettings.with(schema); if (genSet == _generatorSettings) { return this; } _verifySchemaType(schema); return _new(genSet, _prefetch); }
/** * Method that will construct a new instance that uses specific format schema * for serialization. *<p> * Note that method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectWriter with(FormatSchema schema) { GeneratorSettings genSet = _generatorSettings.with(schema); if (genSet == _generatorSettings) { return this; } _verifySchemaType(schema); return _new(genSet, _prefetch); }
/** * @since 2.3 */ public ObjectWriter with(CharacterEscapes escapes) { return _new(_generatorSettings.with(escapes), _prefetch); }
/** * Method that will construct a new instance that uses specific format schema * for serialization. *<p> * Note that method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectWriter with(FormatSchema schema) { _verifySchemaType(schema); return _new(_generatorSettings.with(schema), _prefetch); }
/** * @since 2.3 */ public ObjectWriter with(CharacterEscapes escapes) { GeneratorSettings genSet = _generatorSettings.with(escapes); if (genSet == _generatorSettings) { return this; } return _new(genSet, _prefetch); }
/** * Method that will construct a new instance that will use specified pretty * printer (or, if null, will not do any pretty-printing) */ public ObjectWriter with(PrettyPrinter pp) { GeneratorSettings genSet = _generatorSettings.with(pp); if (genSet == _generatorSettings) { return this; } return _new(genSet, _prefetch); }
/** * @since 2.3 */ public ObjectWriter with(CharacterEscapes escapes) { GeneratorSettings genSet = _generatorSettings.with(escapes); if (genSet == _generatorSettings) { return this; } return _new(genSet, _prefetch); }
/** * Method that will construct a new instance that will use specified pretty * printer (or, if null, will not do any pretty-printing) */ public ObjectWriter with(PrettyPrinter pp) { GeneratorSettings genSet = _generatorSettings.with(pp); if (genSet == _generatorSettings) { return this; } return _new(genSet, _prefetch); }
/** * @since 2.3 */ public ObjectWriter with(CharacterEscapes escapes) { GeneratorSettings genSet = _generatorSettings.with(escapes); if (genSet == _generatorSettings) { return this; } return _new(genSet, _prefetch); }
/** * Method that will construct a new instance that will use specified pretty * printer (or, if null, will not do any pretty-printing) */ public ObjectWriter with(PrettyPrinter pp) { GeneratorSettings genSet = _generatorSettings.with(pp); if (genSet == _generatorSettings) { return this; } return _new(genSet, _prefetch); }
/** * Method that will construct a new instance that will use specified pretty * printer (or, if null, will not do any pretty-printing) */ public ObjectWriter with(PrettyPrinter pp) { return _new(_generatorSettings.with(pp), _prefetch); }
/** * Method that will construct a new instance that uses specific format schema * for serialization. *<p> * Note that method does NOT change state of this reader, but * rather construct and returns a newly configured instance. */ public ObjectWriter with(FormatSchema schema) { _verifySchemaType(schema); return _new(_generatorSettings.with(schema), _prefetch); }
/** * Method that will construct a new instance that will use specified pretty * printer (or, if null, will not do any pretty-printing) */ public ObjectWriter with(PrettyPrinter pp) { return _new(_generatorSettings.with(pp), _prefetch); }
/** * @since 2.3 */ public ObjectWriter with(CharacterEscapes escapes) { return _new(_generatorSettings.with(escapes), _prefetch); }