@Override protected JsonGenerator _createGenerator(ObjectWriteContext writeCtxt, IOContext ioCtxt, Writer out) throws IOException { return new WriterBackedGenerator(writeCtxt, ioCtxt, writeCtxt.getStreamWriteFeatures(_streamWriteFeatures), _getSchema(writeCtxt), out); }
@Override protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, Reader r) throws IOException { Properties props = _loadProperties(r, ioCtxt); return new JavaPropsParser(readCtxt, ioCtxt, readCtxt.getStreamReadFeatures(_streamReadFeatures), _getSchema(readCtxt), r, props); }
@Override protected JsonParser _createParser(ObjectReadContext readCtxt, IOContext ioCtxt, InputStream in) throws IOException { Properties props = _loadProperties(in, ioCtxt); return new JavaPropsParser(readCtxt, ioCtxt, readCtxt.getStreamReadFeatures(_streamReadFeatures), _getSchema(readCtxt), in, props); }
/** * Convenience method to allow feeding a pre-parsed {@link Properties} * instance as input. */ public JavaPropsParser createParser(ObjectReadContext readCtxt, Properties props) { return new JavaPropsParser(readCtxt, _createContext(props, true), readCtxt.getStreamReadFeatures(_streamReadFeatures), _getSchema(readCtxt), props, props); }
@Override protected JsonGenerator _createUTF8Generator(ObjectWriteContext writeCtxt, IOContext ioCtxt, OutputStream out) throws IOException { return new WriterBackedGenerator(writeCtxt, ioCtxt, writeCtxt.getStreamWriteFeatures(_streamWriteFeatures), _getSchema(writeCtxt), _createWriter(ioCtxt, out, null)); }
/** * Convenience method to allow using a pre-constructed {@link Properties} * instance as output target, so that serialized property values * are added. */ public JavaPropsGenerator createGenerator(ObjectWriteContext writeCtxt, Properties props) { return new PropertiesBackedGenerator(writeCtxt, _createContext(props, true), writeCtxt.getStreamWriteFeatures(_streamWriteFeatures), _getSchema(writeCtxt), props); }