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

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

Introduction

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

Prototype

public SmileParser(IOContext ctxt, int parserFeatures, int smileFeatures, ObjectCodec codec,
            BytesToNameCanonicalizer sym, InputStream in, byte[] inputBuffer, int start, int end,
            boolean bufferRecyclable) 

Source Link

Usage

From source file:io.protostuff.SmileIOUtil.java

/**
 * Creates a {@link SmileParser} from the inputstream with the supplied buf {@code inBuffer} to use.
 *///from  w  ww.  jav  a2  s  . c om
static SmileParser newSmileParser(InputStream in, byte[] buf, int offset, int limit, boolean bufferRecyclable,
        IOContext context) throws IOException {
    return new SmileParser(context, DEFAULT_SMILE_FACTORY.getParserFeatures(),
            DEFAULT_SMILE_FACTORY.getSmileParserFeatures(), DEFAULT_SMILE_FACTORY.getCodec(),
            DEFAULT_SMILE_FACTORY.getRootByteSymbols().makeChild(true, true), in, buf, offset, limit,
            bufferRecyclable);
}