Search in sources :

Example 1 with NonBlockingJsonParser

use of com.fasterxml.jackson.core.json.async.NonBlockingJsonParser in project jackson-core by FasterXML.

the class JsonFactory method createNonBlockingByteArrayParser.

/*
    /**********************************************************************
    /* Parser factories, non-blocking (async) sources
    /**********************************************************************
     */
@Override
public JsonParser createNonBlockingByteArrayParser(ObjectReadContext readCtxt) throws IOException {
    IOContext ioCtxt = _createContext(null, false);
    ByteQuadsCanonicalizer can = _byteSymbolCanonicalizer.makeChild(_factoryFeatures);
    return new NonBlockingJsonParser(readCtxt, ioCtxt, readCtxt.getParserFeatures(_parserFeatures), can);
}
Also used : NonBlockingJsonParser(com.fasterxml.jackson.core.json.async.NonBlockingJsonParser) ByteQuadsCanonicalizer(com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer)

Aggregations

NonBlockingJsonParser (com.fasterxml.jackson.core.json.async.NonBlockingJsonParser)1 ByteQuadsCanonicalizer (com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer)1