protected JsonGenerator _createUTF8Generator(OutputStream paramOutputStream, IOContext paramIOContext) { UTF8JsonGenerator localUTF8JsonGenerator = new UTF8JsonGenerator(paramIOContext, this._generatorFeatures, this._objectCodec, paramOutputStream); if (this._characterEscapes != null) localUTF8JsonGenerator.setCharacterEscapes(this._characterEscapes); SerializableString localSerializableString = this._rootValueSeparator; if (localSerializableString != DEFAULT_ROOT_VALUE_SEPARATOR) localUTF8JsonGenerator.setRootValueSeparator(localSerializableString); return localUTF8JsonGenerator; }
/** * Creates a {@link UTF8JsonGenerator} for the outputstream with the supplied buf {@code outBuffer} to use. */ static UTF8JsonGenerator newJsonGenerator(OutputStream out, byte[] buf, int offset, boolean bufferRecyclable, IOContext context) { context.setEncoding(JsonEncoding.UTF8); return new UTF8JsonGenerator(context, DEFAULT_JSON_FACTORY.getGeneratorFeatures(), DEFAULT_JSON_FACTORY.getCodec(), out, buf, offset, bufferRecyclable); }
public void testPackageVersionMatches() { assertEquals(PackageVersion.VERSION, VersionUtil.versionFor(UTF8JsonGenerator.class)); }
/** * Creates a {@link UTF8JsonGenerator} for the outputstream with the supplied buf {@code outBuffer} to use. */ public static UTF8JsonGenerator newJsonGenerator(OutputStream out, byte[] buf) { return newJsonGenerator(out, buf, 0, false, new IOContext( DEFAULT_JSON_FACTORY._getBufferRecycler(), out, false)); }