Example usage for com.fasterxml.jackson.dataformat.smile SmileGenerator SmileGenerator

List of usage examples for com.fasterxml.jackson.dataformat.smile SmileGenerator SmileGenerator

Introduction

In this page you can find the example usage for com.fasterxml.jackson.dataformat.smile SmileGenerator SmileGenerator.

Prototype

public SmileGenerator(IOContext ctxt, int jsonFeatures, int smileFeatures, ObjectCodec codec, OutputStream out,
            byte[] outputBuffer, int offset, boolean bufferRecyclable) 

Source Link

Usage

From source file:io.protostuff.SmileIOUtil.java

/**
 * Creates a {@link SmileGenerator} for the outputstream with the supplied buf {@code outBuffer} to use.
 *///from  w  w w  .j  ava 2s . c o  m
static SmileGenerator newSmileGenerator(OutputStream out, byte[] buf, int offset, boolean bufferRecyclable,
        IOContext context) {
    return new SmileGenerator(context, DEFAULT_SMILE_FACTORY.getGeneratorFeatures(),
            DEFAULT_SMILE_FACTORY.getSmileGeneratorFeatures(), DEFAULT_SMILE_FACTORY.getCodec(), out, buf,
            offset, bufferRecyclable);
}