Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/main/java/com/fasterxml/jackson/core/JsonGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,17 @@ public void writeTypeId(Object id) throws IOException {
throw new JsonGenerationException("No native support for writing Type Ids", this);
}

/**
* Method that can be called on backends that support passing opaque datatypes of
* non-JSON formats
*
* @since 2.8
*/
public void writeEmbeddedObject(Object object) throws IOException {
throw new JsonGenerationException("No native support for writing embedded objects",
this);
}

/*
/**********************************************************
/* Public API, write methods, serializing Java objects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ public JsonGenerator setPrettyPrinter(PrettyPrinter pp) {

@Override
public void writeTypeId(Object id) throws IOException { delegate.writeTypeId(id); }

@Override
public void writeEmbeddedObject(Object object) throws IOException { delegate.writeEmbeddedObject(object); }

/*
/**********************************************************
Expand Down