Package io.micronaut.jackson.core.parser
Class JacksonCoreParserFactory
java.lang.Object
io.micronaut.jackson.core.parser.JacksonCoreParserFactory
Deprecated.
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 tools.jackson.core.JsonParsercreateJsonParser(tools.jackson.core.json.JsonFactory factory, ByteBuffer<?> buffer) Deprecated.Use method withObjectReadContextinsteadstatic tools.jackson.core.JsonParsercreateJsonParser(tools.jackson.core.json.JsonFactory factory, tools.jackson.core.ObjectReadContext readContext, ByteBuffer<?> buffer) Deprecated.Create a jacksonJsonParserfor the given input bytes.
-
Method Details
-
createJsonParser
@Deprecated(since="5.0.0") public static tools.jackson.core.JsonParser createJsonParser(tools.jackson.core.json.JsonFactory factory, ByteBuffer<?> buffer) throws IOException Deprecated.Use method withObjectReadContextinsteadCreate a jacksonJsonParserfor the given input bytes.- Parameters:
factory- The jacksonJsonFactoryfor parse featuresbuffer- The input data- Returns:
- The created parser
- Throws:
IOException- On failure of jackson createParser methods
-
createJsonParser
public static tools.jackson.core.JsonParser createJsonParser(tools.jackson.core.json.JsonFactory factory, tools.jackson.core.ObjectReadContext readContext, ByteBuffer<?> buffer) throws IOException Deprecated.Create a jacksonJsonParserfor the given input bytes.- Parameters:
factory- The jacksonJsonFactoryfor parse featuresreadContext- The jackson read contextbuffer- The input data- Returns:
- The created parser
- Throws:
IOException- On failure of jackson createParser methods
-
JsonMapper.readValue(ReadBuffer, Argument)instead. The implementation can useReadBuffer.useFastHeapBuffer(Function).