Package io.micronaut.jackson.core.parser
Class JacksonCoreParserFactory
java.lang.Object
io.micronaut.jackson.core.parser.JacksonCoreParserFactory
Helper class for implementing
JsonMapper.readValue(ByteBuffer, Argument)
with optimizations for
netty ByteBufs.- Since:
- 4.0.0
- Author:
- Jonas Konrad
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.core.JsonParser
createJsonParser
(com.fasterxml.jackson.core.JsonFactory factory, ByteBuffer<?> buffer) Create a jacksonJsonParser
for the given input bytes.
-
Method Details
-
createJsonParser
public static com.fasterxml.jackson.core.JsonParser createJsonParser(com.fasterxml.jackson.core.JsonFactory factory, ByteBuffer<?> buffer) throws IOException Create a jacksonJsonParser
for the given input bytes.- Parameters:
factory
- The jacksonJsonFactory
for parse featuresbuffer
- The input data- Returns:
- The created parser
- Throws:
IOException
- On failure of jackson createParser methods
-