Java 类com.fasterxml.jackson.core.json.UTF8JsonGenerator 实例源码

项目:QuizUpWinner    文件:JsonFactory.java   
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;
}
项目:Beam    文件:JsonIOUtil.java   
/**
 * 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);
}
项目:protostuff    文件:JsonIOUtil.java   
/**
 * 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);
}
项目:GitHub    文件:TestVersionUtil.java   
public void testPackageVersionMatches() {
    assertEquals(PackageVersion.VERSION, VersionUtil.versionFor(UTF8JsonGenerator.class));
}
项目:Beam    文件:JsonIOUtil.java   
/**
 * 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));
}
项目:protostuff    文件:JsonIOUtil.java   
/**
 * 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));
}