File tree 3 files changed +20
-1
lines changed
src/main/java/tools/jackson/databind
3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -40,3 +40,7 @@ Andy Boothe (@sigpwned)
40
40
* Contributed #5025: Add support for automatic detection of subtypes (like `@JsonSubTypes`)
41
41
from Java 17 sealed types
42
42
[3.0.0]
43
+
44
+ Sébastien Deleuze (@sdeleuze)
45
+ * Requested #5110: Add missing `ObjectMapper#createNonBlockingByteBufferParser()` method
46
+ [3.0.0]
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ Versions: 3.x (for earlier see VERSION-2.x)
11
11
to use `Supplier`
12
12
#5094: Change the way `BeanDescription` passed during deserializer construction
13
13
to use `Supplier`
14
+ #5110: Add missing `ObjectMapper#createNonBlockingByteBufferParser()` method
15
+ (requested by Sébastien D)
14
16
15
17
3.0.0-rc3 (13-Apr-2025)
16
18
Original file line number Diff line number Diff line change @@ -737,7 +737,7 @@ public JsonParser createParser(DataInput content) throws JacksonException {
737
737
* Factory method for constructing non-blocking {@link JsonParser} that is properly
738
738
* wired to allow configuration access (and, if relevant for parser, callbacks):
739
739
* essentially constructs a {@link ObjectReadContext} and then calls
740
- * {@link TokenStreamFactory#createParser (ObjectReadContext,DataInput )}.
740
+ * {@link TokenStreamFactory#createNonBlockingByteArrayParser (ObjectReadContext)}.
741
741
*
742
742
* @since 3.0
743
743
*/
@@ -746,6 +746,19 @@ public JsonParser createNonBlockingByteArrayParser() throws JacksonException {
746
746
return ctxt .assignAndReturnParser (_streamFactory .createNonBlockingByteArrayParser (ctxt ));
747
747
}
748
748
749
+ /**
750
+ * Factory method for constructing non-blocking {@link JsonParser} that is properly
751
+ * wired to allow configuration access (and, if relevant for parser, callbacks):
752
+ * essentially constructs a {@link ObjectReadContext} and then calls
753
+ * {@link TokenStreamFactory#createNonBlockingByteBufferParser(ObjectReadContext)}.
754
+ *
755
+ * @since 3.0
756
+ */
757
+ public JsonParser createNonBlockingByteBufferParser () throws JacksonException {
758
+ DeserializationContextExt ctxt = _deserializationContext ();
759
+ return ctxt .assignAndReturnParser (_streamFactory .createNonBlockingByteBufferParser (ctxt ));
760
+ }
761
+
749
762
/*
750
763
/**********************************************************************
751
764
/* Public API: constructing Generator that are properly linked
You can’t perform that action at this time.
0 commit comments