File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
src/main/java/com/fasterxml/jackson/core Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1236,6 +1236,17 @@ public void writeTypeId(Object id) throws IOException {
1236
1236
throw new JsonGenerationException ("No native support for writing Type Ids" , this );
1237
1237
}
1238
1238
1239
+ /**
1240
+ * Method that can be called on backends that support passing opaque datatypes of
1241
+ * non-JSON formats
1242
+ *
1243
+ * @since 2.8
1244
+ */
1245
+ public void writeEmbeddedObject (Object object ) throws IOException {
1246
+ throw new JsonGenerationException ("No native support for writing embedded objects" ,
1247
+ this );
1248
+ }
1249
+
1239
1250
/*
1240
1251
/**********************************************************
1241
1252
/* Public API, write methods, serializing Java objects
Original file line number Diff line number Diff line change @@ -326,6 +326,9 @@ public JsonGenerator setPrettyPrinter(PrettyPrinter pp) {
326
326
327
327
@ Override
328
328
public void writeTypeId (Object id ) throws IOException { delegate .writeTypeId (id ); }
329
+
330
+ @ Override
331
+ public void writeEmbeddedObject (Object object ) throws IOException { delegate .writeEmbeddedObject (object ); }
329
332
330
333
/*
331
334
/**********************************************************
You can’t perform that action at this time.
0 commit comments