Class JacksonCoreParserFactory

java.lang.Object
io.micronaut.jackson.core.parser.JacksonCoreParserFactory

@Internal public final class JacksonCoreParserFactory extends Object
Helper class for implementing JsonMapper.readValue(ByteBuffer, Argument) with optimizations for netty ByteBufs.
Since:
4.0.0
Author:
Jonas Konrad
  • Method Details

    • createJsonParser

      public static com.fasterxml.jackson.core.JsonParser createJsonParser(com.fasterxml.jackson.core.JsonFactory factory, ByteBuffer<?> buffer) throws IOException
      Create a jackson JsonParser for the given input bytes.
      Parameters:
      factory - The jackson JsonFactory for parse features
      buffer - The input data
      Returns:
      The created parser
      Throws:
      IOException - On failure of jackson createParser methods