Example usage for com.fasterxml.jackson.core.json UTF8JsonGenerator UTF8JsonGenerator

List of usage examples for com.fasterxml.jackson.core.json UTF8JsonGenerator UTF8JsonGenerator

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core.json UTF8JsonGenerator UTF8JsonGenerator.

Prototype

public UTF8JsonGenerator(IOContext ctxt, int features, ObjectCodec codec, OutputStream out, byte[] outputBuffer,
            int outputOffset, boolean bufferRecyclable) 

Source Link

Usage

From source file:io.protostuff.JsonIOUtil.java

/**
 * Creates a {@link UTF8JsonGenerator} for the outputstream with the supplied buf {@code outBuffer} to use.
 *//*from  w  ww .  j a v  a2s.  c  o  m*/
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);
}