/** * Method that we need to override to actually make restoration go * through constructors etc. * Also: must be overridden by sub-classes as well. */ protected Object readResolve() { return new JsonFactory(this); }
@Override public JsonParser createNonBlockingByteArrayParser(ObjectReadContext readCtxt) throws IOException { IOContext ioCtxt = _createNonBlockingContext(null); ByteQuadsCanonicalizer can = _byteSymbolCanonicalizer.makeChild(_factoryFeatures); return new NonBlockingJsonParser(readCtxt, ioCtxt, readCtxt.getStreamReadFeatures(_streamReadFeatures), readCtxt.getFormatReadFeatures(_formatReadFeatures), can); }
@Override public JsonFactory build() { // 28-Dec-2017, tatu: No special settings beyond base class ones, so: return new JsonFactory(this); } }
/** * Method for constructing a new {@link JsonFactory} that has * the same settings as this instance, but is otherwise * independent (i.e. nothing is actually shared, symbol tables * are separate). */ @Override public JsonFactory copy() { return new JsonFactory(this); }