You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: database/starters/oracle-spring-boot-starter-json-collections/src/main/java/com/oracle/spring/json/jsonb/JSONB.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
importjava.io.ByteArrayOutputStream;
6
6
importjava.io.IOException;
7
+
importjava.io.InputStream;
7
8
importjava.nio.ByteBuffer;
8
9
9
10
importjakarta.json.stream.JsonGenerator;
@@ -40,4 +41,14 @@ public JsonParser toJsonParser(Object o) {
40
41
public <T> TfromOSON(JsonParserparser, Class<T> clazz) {
41
42
returnjsonb.fromJson(parser, clazz);
42
43
}
44
+
45
+
public <T> TfromOSON(InputStreaminputStream, Class<T> clazz) {
Copy file name to clipboardExpand all lines: database/starters/oracle-spring-boot-starter-json-collections/src/test/java/com/oracle/spring/json/jsonb/JSONBTest.java
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
0 commit comments