Example usage for com.fasterxml.jackson.core.io IOContext allocConcatBuffer

List of usage examples for com.fasterxml.jackson.core.io IOContext allocConcatBuffer

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core.io IOContext allocConcatBuffer.

Prototype

public char[] allocConcatBuffer() 

Source Link

Usage

From source file:com.bazaarvoice.jackson.rison.RisonGenerator.java

public RisonGenerator(IOContext ctxt, int jsonFeatures, int risonFeatures, ObjectCodec codec, Writer w) {
    super(jsonFeatures, codec);
    _ioContext = ctxt;/* w  ww  .  j  av  a2 s.  c  o m*/
    _writer = w;
    _risonFeatures = risonFeatures;
    _outputBuffer = ctxt.allocConcatBuffer();
    _outputEnd = _outputBuffer.length;
}